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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e1ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4cc498]
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 edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x44], edx
cmp ecx, 0x104
jb 0x437f11
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x437eff
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x437f25
mov eax, 0x104
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
mov edx, dword [ebp - 0x44]
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x48], 0x208
mov dword [ebp - 0x4c], 1
jb 0x437f3d
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x437fab
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x438382
mov ecx, dword [edi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x437f80
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x437f75
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x437f8c
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x437f96
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x44]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438382
cmp dword [edi + 0x10], eax
je 0x438382
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x437fc6
mov eax, dword [edi]
cmp word [eax], 0
je 0x438382
cmp dword [ebx + 0x10], 0
je 0x43816e
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x437fe4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43816e
mov ecx, dword [ebx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x50], ecx
cmp eax, 1
jb 0x4383a0
cmp dword [ebx + 0x14], 8
jb 0x438012
mov ebx, dword [ebx]
inc ecx
mov dword [ebp - 0x40], 0
mov esi, 7
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x44], eax
cmp ecx, esi
jbe 0x43806d
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x43804e
mov esi, 0x7ffffffe
jmp 0x438058
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401c70
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x50]
add esi, esi
mov dword [ebp - 0x30], ecx
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x44]
mov ecx, 0x5c
xor edx, edx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x50]
mov word [eax + ecx*2 + 2], dx
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], edx
jb 0x4380a6
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401cd0
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, edi
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
call fcn.004023b0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43812b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43815e
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43816e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438164
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x438368
fld qword [0x4ab840]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x438368
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
jb 0x438198
mov ecx, dword [edi]
test eax, eax
je 0x438368
lea edx, [eax - 1]
or eax, 0xffffffff
cmp edx, eax
cmovb eax, edx
cmp word [ecx + eax*2], 0x2e
lea esi, [ecx + eax*2]
je 0x4381c6
cmp esi, ecx
je 0x438368
sub esi, 2
cmp word [esi], 0x2e
jne 0x4381b5
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x438368
test esi, esi
je 0x438368
push edx
push esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0040d750
push esi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040d750
push 0x4aac60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004335c0
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.00401cd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x4382e0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041d480
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438287
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43827d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438356
push edx
push ecx
call fcn.0049744e
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 0x43837e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4382cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438356
push edx
push ecx
call fcn.0049744e
add esp, 8
mov al, 1
jmp 0x438384
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438316
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43830c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438356
push edx
push ecx
call fcn.0049744e
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 0x43836e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43835c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43835c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
jmp 0x43836e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x438376
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x438382
mov al, 1
jmp 0x438384
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.0049745c
mov esp, ebp
pop ebp
ret
call fcn.00401c50
int3