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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a00dd
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 0x438161
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43814f
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x438175
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 0x43818d
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 0x4381fb
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4385d2
mov ecx, dword [edi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x4381d0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4381c5
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4381dc
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00407ba0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4381e6
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 0x4385d2
cmp dword [edi + 0x10], eax
je 0x4385d2
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438216
mov eax, dword [edi]
cmp word [eax], 0
je 0x4385d2
cmp dword [ebx + 0x10], 0
je 0x4383be
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x438234
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4383be
mov ecx, dword [ebx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x50], ecx
cmp eax, 1
jb 0x4385f0
cmp dword [ebx + 0x14], 8
jb 0x438262
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 0x4382bd
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x43829e
mov esi, 0x7ffffffe
jmp 0x4382a8
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 0x4382f6
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 0x43837b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438371
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4383ae
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4383be
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4383b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4383b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x4385b8
fld qword [0x4ad870]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x4385b8
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
jb 0x4383e8
mov ecx, dword [edi]
test eax, eax
je 0x4385b8
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 0x438416
cmp esi, ecx
je 0x4385b8
sub esi, 2
cmp word [esi], 0x2e
jne 0x438405
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4385b8
test esi, esi
je 0x4385b8
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.00433940
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 0x438530
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041d610
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4384d7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4385a6
push edx
push ecx
call fcn.004991fe
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 0x4385ce
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43851f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4385a6
push edx
push ecx
call fcn.004991fe
add esp, 8
mov al, 1
jmp 0x4385d4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x438566
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43855c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4385a6
push edx
push ecx
call fcn.004991fe
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 0x4385be
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4385ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4385ac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
jmp 0x4385be
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x4385c6
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x4385d2
mov al, 1
jmp 0x4385d4
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.0049920c
mov esp, ebp
pop ebp
ret
call fcn.00401c50
int3