Function at 0x43ff70
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495bd9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4bf434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x4c], edx
cmp ecx, 0x104
jb 0x43ffd8
mov dword [esi + 0x10], 0x104
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43ffcd
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x43ffec
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407480
mov edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x48], 1
jb 0x440004
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x440072
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4403f4
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x440047
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x44003f
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x440053
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407480
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44005d
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4403f4
cmp dword [esi + 0x10], eax
je 0x4403f4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44008d
mov eax, dword [esi]
cmp word [eax], 0
je 0x4403f4
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
je 0x4401e0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4400ae
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4401e0
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov eax, dword [ebx]
inc eax
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x50], 1
call fcn.00407740
cmp dword [edi + 0x14], 8
jb 0x4400f4
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x40]
push edi
call fcn.00401d80
push 1
push 0x49d96c
lea ecx, [ebp - 0x40]
call fcn.00401d80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x440118
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401d80
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov word [edx], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov ecx, esi
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
call fcn.00407d00
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44019d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440193
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4401d0
push edx
push ecx
call fcn.00488034
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4401e0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4401d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4401d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x4403da
fld qword [0x4a5038]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x4403da
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x440207
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4403da
lea edx, [eax - 1]
or eax, 0xffffffff
cmp edx, eax
cmovb eax, edx
cmp word [ecx + eax*2], 0x2e
lea edi, [ecx + eax*2]
je 0x440238
cmp edi, ecx
je 0x4403da
sub edi, 2
cmp word [edi], 0x2e
jne 0x440227
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
je 0x4403da
test edi, edi
je 0x4403da
push edx
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040be20
push edi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040be20
push 0x4a46e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0043c700
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401d80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp eax, 0xffffffff
je 0x440352
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041c390
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4402f9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4402ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403c8
push edx
push ecx
call fcn.00488034
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4403f0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440341
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403c8
push edx
push ecx
call fcn.00488034
add esp, 8
mov al, 1
jmp 0x4403f6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x440388
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44037e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403c8
push edx
push ecx
call fcn.00488034
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4403e0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4403ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4403ce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
jmp 0x4403e0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4403e8
mov esi, dword [esi]
push esi
call edi
cmp eax, 0xffffffff
je 0x4403f4
mov al, 1
jmp 0x4403f6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488042
mov esp, ebp
pop ebp
ret