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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a09cd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ce4bc]
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 0x4380d1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4380bf
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x4380e5
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 0x4380fd
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 0x43816b
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x438542
mov ecx, dword [edi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x438140
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x438135
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x43814c
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438156
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 0x438542
cmp dword [edi + 0x10], eax
je 0x438542
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438186
mov eax, dword [edi]
cmp word [eax], 0
je 0x438542
cmp dword [ebx + 0x10], 0
je 0x43832e
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4381a4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43832e
mov ecx, dword [ebx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x50], ecx
cmp eax, 1
jb 0x438560
cmp dword [ebx + 0x14], 8
jb 0x4381d2
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 0x43822d
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x43820e
mov esi, 0x7ffffffe
jmp 0x438218
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 0x438266
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 0x4382eb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4382e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43831e
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43832e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438324
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x438528
fld qword [0x4ad878]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x438528
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
jb 0x438358
mov ecx, dword [edi]
test eax, eax
je 0x438528
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 0x438386
cmp esi, ecx
je 0x438528
sub esi, 2
cmp word [esi], 0x2e
jne 0x438375
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x438528
test esi, esi
je 0x438528
push edx
push esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0040d890
push esi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040d890
push 0x4acc40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004338c0
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 0x4384a0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041d590
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438447
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43843d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438516
push edx
push ecx
call fcn.00499aee
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 0x43853e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43848f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438516
push edx
push ecx
call fcn.00499aee
add esp, 8
mov al, 1
jmp 0x438544
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4384d6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438516
push edx
push ecx
call fcn.00499aee
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 0x43852e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43851c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43851c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
jmp 0x43852e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x438536
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x438542
mov al, 1
jmp 0x438544
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.00499afc
mov esp, ebp
pop ebp
ret
call fcn.00401c50
int3