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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a082d
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 0x438071
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43805f
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x438085
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 0x43809d
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 0x43810b
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4384e2
mov ecx, dword [edi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x4380e0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4380d5
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4380ec
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4380f6
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 0x4384e2
cmp dword [edi + 0x10], eax
je 0x4384e2
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438126
mov eax, dword [edi]
cmp word [eax], 0
je 0x4384e2
cmp dword [ebx + 0x10], 0
je 0x4382ce
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x438144
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4382ce
mov ecx, dword [ebx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x50], ecx
cmp eax, 1
jb 0x438500
cmp dword [ebx + 0x14], 8
jb 0x438172
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 0x4381cd
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4381ae
mov esi, 0x7ffffffe
jmp 0x4381b8
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 0x438206
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 0x43828b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438281
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4382be
push edx
push ecx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4382ce
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4382c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4382c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x4384c8
fld qword [0x4ad878]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x4384c8
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
jb 0x4382f8
mov ecx, dword [edi]
test eax, eax
je 0x4384c8
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 0x438326
cmp esi, ecx
je 0x4384c8
sub esi, 2
cmp word [esi], 0x2e
jne 0x438315
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4384c8
test esi, esi
je 0x4384c8
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.00433860
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 0x438440
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041d590
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4383e7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4383dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4384b6
push edx
push ecx
call fcn.0049995e
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 0x4384de
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43842f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4384b6
push edx
push ecx
call fcn.0049995e
add esp, 8
mov al, 1
jmp 0x4384e4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438476
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43846c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4384b6
push edx
push ecx
call fcn.0049995e
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 0x4384ce
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4384bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
jmp 0x4384ce
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x4384d6
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x4384e2
mov al, 1
jmp 0x4384e4
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.0049996c
mov esp, ebp
pop ebp
ret
call fcn.00401c50
int3