Function at 0x438290
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x484060
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
cmp dword [edi + 8], 0
jne 0x438db5
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov dword [edi + 8], 1
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x43834c
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4382fe
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov esi, dword [ebx]
call fcn.0043dd90
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438320
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [edi + 4]
push ecx
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00408a30
lea esi, [esp + 0x18]
call fcn.0043d450
add esp, 4
lea ebx, [edi + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.00407570
or ebp, 0xffffffff
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4383a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x5c
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
push str.Resource_
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004073c0
add esp, 0xc
lea ecx, [edi + 0x3c]
push eax
mov dword [esp + 0x28], 1
call fcn.00407570
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4383ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0042b5b0
lea ecx, [edi + 0x4c]
push eax
mov dword [esp + 0x28], 2
call fcn.00407570
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0042b710
lea ecx, [edi + 0x48]
push eax
mov dword [esp + 0x28], 3
call fcn.00407570
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438483
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0042b870
lea ecx, [edi + 0x5c]
push eax
mov dword [esp + 0x28], 4
call fcn.00407570
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4384c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x14]
cmp dword [ecx - 0xc], 0
lea ebx, [edi + 0x14]
jne 0x43854f
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4384f6
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x438519
jmp 0x438527
push 0x80070057
call fcn.00401fc0
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ecx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov edx, dword [edi + 0x18]
cmp dword [edx - 0xc], 0
lea ebx, [edi + 0x18]
jne 0x4385d5
mov eax, edx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x438580
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4385a9
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esi, 0x1c
cmp dword [eax - 0xc], 0
jne 0x4386bb
call fcn.0043de10
test eax, eax
je 0x438642
push str.SysWow64_
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004073c0
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x28], 5
call fcn.00407570
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4386bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4386bb
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438668
push 0x104
mov ecx, esi
call fcn.00401cf0
mov eax, dword [esi]
push 0x104
push eax
call edi
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x43868d
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
mov ebx, esi
call fcn.004117a0
push 1
push 0x49151c
mov ecx, esi
call fcn.0040e2c0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0x20]
jne 0x438740
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x4386ef
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438714
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ebx, [esi + 0x24]
jne 0x4387ca
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438776
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push eax
push 0
push 0
push 0x26
push 0
call ebp
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x43879e
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [esi + 0x28]
cmp dword [eax - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebx, [esi + 0x28]
jne 0x43886d
call fcn.0043de10
test eax, eax
mov eax, dword [ebx]
mov ecx, 1
je 0x4388bb
mov edx, dword [eax - 8]
sub ecx, dword [eax - 4]
sub eax, 0x10
sub edx, 0x104
or ecx, edx
jge 0x438813
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
push str._ProgramW6432_
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x43882f
xor eax, eax
jmp 0x438841
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [esi + 0x2c]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0x2c]
jne 0x43892a
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x4388a1
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramFiles_
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x4388ec
jmp 0x4388fe
mov edx, dword [eax - 8]
sub ecx, dword [eax - 4]
sub eax, 0x10
sub edx, 0x104
or ecx, edx
jge 0x4388da
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push eax
push 0
push 0
push 0x26
push 0
call ebp
jmp 0x438822
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [esi + 0x30]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0x30]
jne 0x4389c7
call fcn.0043de10
test eax, eax
mov eax, dword [ebx]
mov ecx, 1
je 0x438a19
mov edx, dword [eax - 8]
sub ecx, dword [eax - 4]
sub eax, 0x10
sub edx, 0x104
or ecx, edx
jge 0x43896d
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramW6432_
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x438989
xor eax, eax
jmp 0x43899b
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, esi
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add ebx, 0x34
cmp dword [eax - 0xc], 0
jne 0x438a88
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438a03
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0
push 0x10
push eax
push 0
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x438a4a
jmp 0x438a5c
mov edx, dword [eax - 8]
sub ecx, dword [eax - 4]
sub eax, 0x10
sub edx, 0x104
or ecx, edx
jge 0x438a38
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramFiles_
jmp 0x43897a
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x38]
add ebx, 0x38
cmp dword [eax - 0xc], 0
jne 0x438b0e
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438abc
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0
push 0x19
push eax
push 0
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438ae2
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x40]
add ebx, 0x40
cmp dword [eax - 0xc], 0
jne 0x438b98
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438b42
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0x104
push eax
push str._APPDATA_
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438b6c
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x44]
add ebx, 0x44
cmp dword [eax - 0xc], 0
jne 0x438c20
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438bcc
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push eax
push 1
push 0
push 0x23
push 0
call ebp
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438bf4
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x50]
add ebx, 0x50
cmp dword [eax - 0xc], 0
jne 0x438ca6
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438c54
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0
push 2
push eax
push 0
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438c7a
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x54]
add ebx, 0x54
cmp dword [eax - 0xc], 0
jne 0x438d2c
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438cda
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push 0
push 0x17
push eax
push 0
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438d00
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x58]
add ebx, 0x58
cmp dword [eax - 0xc], 0
jne 0x438db5
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x438d60
push 0x104
mov ecx, ebx
call fcn.00401cf0
mov eax, dword [ebx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x438d89
push ecx
push eax
call fcn.004624b4
add esp, 8
test eax, eax
jl 0x43850f
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x43850f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4