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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fedd
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 0x4380f1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4380df
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x438105
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 0x43811d
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 0x43818b
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x438562
mov ecx, dword [edi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x438160
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x438155
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x43816c
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438176
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 0x438562
cmp dword [edi + 0x10], eax
je 0x438562
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4381a6
mov eax, dword [edi]
cmp word [eax], 0
je 0x438562
cmp dword [ebx + 0x10], 0
je 0x43834e
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4381c4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43834e
mov ecx, dword [ebx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x50], ecx
cmp eax, 1
jb 0x438580
cmp dword [ebx + 0x14], 8
jb 0x4381f2
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 0x43824d
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x43822e
mov esi, 0x7ffffffe
jmp 0x438238
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 0x438286
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 0x43830b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438301
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43833e
push edx
push ecx
call fcn.0049900e
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43834e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438344
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438344
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x438548
fld qword [0x4ad870]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x438548
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
jb 0x438378
mov ecx, dword [edi]
test eax, eax
je 0x438548
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 0x4383a6
cmp esi, ecx
je 0x438548
sub esi, 2
cmp word [esi], 0x2e
jne 0x438395
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x438548
test esi, esi
je 0x438548
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 0x4acc38
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004338e0
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 0x4384c0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041d610
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438467
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43845d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438536
push edx
push ecx
call fcn.0049900e
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 0x43855e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438536
push edx
push ecx
call fcn.0049900e
add esp, 8
mov al, 1
jmp 0x438564
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4384f6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438536
push edx
push ecx
call fcn.0049900e
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 0x43854e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43853c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43853c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x43854e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x438556
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x438562
mov al, 1
jmp 0x438564
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.0049901c
mov esp, ebp
pop ebp
ret
call fcn.00401c50
int3