Function at 0x432e40
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x48742f
push eax
mov eax, 0x2a38
mov dword fs:[0], esp
call fcn.0044e630
push ebx
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2a40]
mov ebx, ecx
push 0
push eax
call fcn.004663d0
xor eax, eax
mov dword [ebp - 0x10], 7
add esp, 0xc
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x432ea3
mov esi, dword [edi]
jmp 0x432ea5
mov esi, edi
cmp ecx, 8
jb 0x432eae
mov edx, dword [edi]
jmp 0x432eb0
mov edx, edi
mov eax, dword [edi + 0x10]
lea eax, [edx + eax*2]
cmp ecx, 8
jb 0x432ebf
mov edx, dword [edi]
jmp 0x432ec1
mov edx, edi
push ecx
push esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.00417630
add esp, 0xc
lea ecx, [ebp - 0x40]
mov edx, edi
call fcn.00416760
xor edx, edx
mov byte [ebp - 4], 1
push ecx
lea ecx, [edx + 0xa]
call fcn.00404a00
add esp, 4
test al, al
jne 0x432f11
push 7
push ecx
push 0x49c028
lea ecx, [ebp - 0x40]
call fcn.0041172b
test eax, eax
jne 0x432f11
push 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0040392d
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x90]
push dword [eax]
call fcn.00434ee0
add esp, 0xc
mov esi, dword [eax]
cmp esi, dword [ebx + 4]
je 0x4330f5
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
call fcn.00434bc0
test al, al
je 0x432f48
mov eax, dword [esi + 0x20]
jmp 0x432f4e
mov eax, dword [esi + 0x24]
add eax, 0xffffffe8
cmp edi, eax
je 0x432f5e
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040355a
push dword [ebp + 0x1c]
push edi
call fcn.004339c0
test eax, eax
je 0x4330ee
test byte [ebp + 0x14], 2
je 0x4330de
push 0x1fe
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.004663d0
add esp, 0xc
lea eax, [ebp - 0x640]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0xa8]
call fcn.0040ae78
add esp, 4
mov esi, eax
cmp edi, esi
je 0x433080
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x433017
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
jbe 0x432fd7
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x43300e
test cl, 0x1f
je 0x432fea
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x432ff6
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x433002
call fcn.00469659
cmp ecx, 0x23
jbe 0x43300c
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x43302f
mov eax, dword [edi]
jmp 0x433031
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x14], 8
jae 0x433053
mov eax, dword [esi + 0x10]
add eax, 1
je 0x433059
add eax, eax
push eax
push esi
push edi
call fcn.004643b0
add esp, 0xc
jmp 0x433059
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], ecx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x43307b
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x4330de
mov ecx, dword [ebp - 0xa8]
inc eax
cmp eax, 0x7fffffff
jbe 0x43309e
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x4330d5
test cl, 0x1f
je 0x4330b1
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4330bd
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x4330c9
call fcn.00469659
cmp ecx, 0x23
jbe 0x4330d3
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0xbf4], 0
xor esi, esi
jmp 0x43397f
mov ebx, dword [ebp + 0x14]
test bl, 1
jne 0x43310f
push dword [ebp + 0x1c]
push edi
call fcn.004339c0
test eax, eax
je 0x4330de
test bl, 4
je 0x433129
mov eax, dword fs:[0x18]
mov esi, 0xc0000225
mov dword [eax + 0xbf4], 0xc0000225
jmp 0x43397f
cmp dword [edi + 0x14], 8
jb 0x433133
mov eax, dword [edi]
jmp 0x433135
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4330de
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push str.SYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test ebx, ebx
jne 0x433236
xor esi, esi
test ebx, ebx
jne 0x43322d
push 0x1fe
lea eax, [ebp - 0xa40]
push ebx
push eax
call fcn.004663d0
add esp, 0xc
lea eax, [ebp - 0x440]
push 0x1fe
push ebx
push eax
call fcn.004663d0
add esp, 0xc
mov dword [ebp + 0x14], 0xff
lea eax, [ebp + 0x14]
mov dword [ebp + 0x1c], ebx
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xa40]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x2c], 8
mov ebx, eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0046dfb1
add esp, 8
test eax, eax
jne 0x433220
push 0x1fe
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.004663d0
add esp, 0xc
mov dword [ebp + 0x14], 0xff
lea eax, [ebp - 0x840]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test ebx, ebx
je 0x4332a4
inc esi
cmp esi, 0x1000
jl 0x433168
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10], 0
sete al
test al, al
jne 0x4335e8
push 0x49c024
lea ecx, [ebp - 0xd8]
call fcn.0040aeee
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.0040af66
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x4334db
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x433475
mov ecx, dword [ebp - 0x24]
inc eax
cmp eax, 0x7fffffff
jbe 0x433434
call fcn.00469659
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00406124
push 0x49c020
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00406af8
add esp, 4
mov ecx, edi
push eax
call fcn.004060de
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x433345
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x433304
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x43333c
test byte [ebp - 0x58], 0x1f
je 0x433318
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433324
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x433330
call fcn.00469659
cmp ecx, 0x23
jbe 0x43333a
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4333b2
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x433371
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x4333a9
test byte [ebp - 0x70], 0x1f
je 0x433385
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433391
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x43339d
call fcn.00469659
cmp ecx, 0x23
jbe 0x4333a7
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x433424
mov ecx, dword [ebp - 0xc0]
inc eax
cmp eax, 0x7fffffff
jbe 0x4333e4
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x43341b
test cl, 0x1f
je 0x4333f7
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433403
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x43340f
call fcn.00469659
cmp ecx, 0x23
jbe 0x433419
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x43397f
add eax, eax
cmp eax, 0x1000
jb 0x43346c
test byte [ebp - 0x24], 0x1f
je 0x433448
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433454
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x433460
call fcn.00469659
cmp ecx, 0x23
jbe 0x43346a
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp dword [esi + 0x14], 8
jae 0x4334a9
mov eax, dword [esi + 0x10]
add eax, 1
je 0x4334b4
add eax, eax
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004643b0
add esp, 0xc
jmp 0x4334b4
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4334d6
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x43353e
mov ecx, dword [ebp - 0x88]
inc eax
cmp eax, 0x7fffffff
jbe 0x4334fa
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x433535
test byte [ebp - 0x88], 0x1f
je 0x433511
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x43351d
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x433529
call fcn.00469659
cmp ecx, 0x23
jbe 0x433533
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
cmp eax, 8
jb 0x4335b7
mov ecx, dword [ebp - 0xd8]
inc eax
cmp eax, 0x7fffffff
jbe 0x433577
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x4335ae
test cl, 0x1f
je 0x43358a
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433596
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x4335a2
call fcn.00469659
cmp ecx, 0x23
jbe 0x4335ac
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4335e8
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x4335e1
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040355a
xor esi, esi
jmp 0x43397f
push dword [ebp + 0x18]
lea eax, [ebp - 0x120]
push eax
call fcn.00433e40
push 0x49c0b8
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x108]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0xf0]
call fcn.0040af66
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xc
cmp eax, esi
je 0x4336ba
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x433694
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x24]
cmp eax, 0x7fffffff
jbe 0x433653
call fcn.00469659
add eax, eax
cmp eax, 0x1000
jb 0x43368b
test byte [ebp - 0x24], 0x1f
je 0x433667
call fcn.00469659
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x433673
call fcn.00469659
sub ecx, eax
cmp ecx, 4
jae 0x43367f
call fcn.00469659
cmp ecx, 0x23
jbe 0x433689
call fcn.00469659
mov ecx, eax
push ecx
call fcn.0044d89d
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
push esi
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.00406b62
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.00406472
lea ecx, [ebp - 0xf0]
call fcn.004060d4
lea ecx, [ebp - 0x108]
call fcn.004060d4
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.00416f10
test al, al
jne 0x4339a4
push 0x1000
lea eax, [ebp - 0x2a40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x2a40]
push eax
lea ecx, [ebp - 0x168]
call fcn.00406124
push 0x49c0bc
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x150]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push ecx
mov edx, eax
lea ecx, [ebp - 0x138]
call fcn.0040af66
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.004060de
lea ecx, [ebp - 0x138]
call fcn.004060d4
lea ecx, [ebp - 0x150]
call fcn.004060d4
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 1
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.00416f10
test al, al
jne 0x4339a4
push 0x1000
lea eax, [ebp - 0x2a40]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x2a40]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00406124
push 0x49c0b0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x198]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x180]
call fcn.0040af66
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.004060de
lea ecx, [ebp - 0x180]
call fcn.004060d4
lea ecx, [ebp - 0x198]
call fcn.004060d4
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 1
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.00416f10
test al, al
jne 0x4339a4
lea eax, [ebp - 0x2a40]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x2a40]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.00406124
push 0x49c0b4
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1e0]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c8]
call fcn.0040af66
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.004060de
lea ecx, [ebp - 0x1c8]
call fcn.004060d4
lea ecx, [ebp - 0x1e0]
call fcn.004060d4
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 1
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.00416f10
test al, al
jne 0x4339a4
push 0x1000
lea eax, [ebp - 0x2a40]
push eax
push 0x49c0c8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2a40]
push 0x49c0d4
push eax
call fcn.0046f36f
add esp, 0xc
test eax, eax
je 0x433973
nop
push eax
lea ecx, [ebp - 0x240]
call fcn.00406124
push 0x49c0c4
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x228]
call fcn.00406af8
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
push ecx
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040af66
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.004060de
lea ecx, [ebp - 0x210]
call fcn.004060d4
lea ecx, [ebp - 0x228]
call fcn.004060d4
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.00416f10
test al, al
jne 0x4339a4
lea eax, [ebp - 0x28]
push eax
push 0x49c0c0
push dword [ebp - 0x28]
call fcn.0046f36f
add esp, 0xc
test eax, eax
jne 0x4338e0
mov ecx, 0xc0000225
call fcn.00417800
mov esi, eax
lea ecx, [ebp - 0x40]
call fcn.004060d4
lea ecx, [ebp - 0x24]
call fcn.004060d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004086bf
xor esi, esi
jmp 0x43397f