Function at 0x409060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x42c], 0x400
mov dword [ebp - 0x21c], 1
lea ecx, [ebp - 4]
call fcn.00405400
lea ecx, [ebp - 0x438]
call fcn.00405400
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004129b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 4]
call fcn.00405510
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405f20
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x409125
mov ecx, dword [ebp - 0x430]
add ecx, 1
push ecx
lea edx, [ebp - 0x880]
push edx
lea ecx, [ebp - 4]
call fcn.00406360
push eax
lea ecx, [ebp - 0x438]
call fcn.004062d0
lea ecx, [ebp - 0x880]
call fcn.00405690
push str.__:_
push 0x426200
lea ecx, [ebp - 0x438]
call fcn.00408830
push 0x426204
push 0x426208
lea ecx, [ebp - 0x438]
call fcn.00408830
push 0x42620c
push 0x426210
lea ecx, [ebp - 0x438]
call fcn.00408830
lea ecx, [ebp - 0x434]
call fcn.00405400
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.004129b0
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x434]
call fcn.00405510
push 0x426214
lea ecx, [ebp - 0x434]
call fcn.00406010
push str.ProductInfo.txt
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x884]
push edx
call fcn.00406270
push eax
lea ecx, [ebp - 0x434]
call fcn.00405fe0
lea ecx, [ebp - 0x884]
call fcn.00405690
push str.rt_ccsUTF_8
lea ecx, [ebp - 0x434]
call fcn.004032a0
push eax
call fcn.00412cb5
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40939a
push 0
push 3
mov eax, dword [ebp - 8]
push eax
call fcn.00413b07
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 0x400
lea edx, [ebp - 0x838]
push edx
call fcn.00413935
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x838]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x83c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x83c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004123e5
add esp, 4
mov dword [ebp - 0x888], eax
mov eax, dword [ebp - 0x888]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x83c]
push ecx
mov edx, dword [ebp - 0x860]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x838]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x860]
push ecx
lea ecx, [ebp - 0x858]
call fcn.00402180
push 0
push 0x426274
lea ecx, [ebp - 0x858]
call fcn.004021f0
mov dword [ebp - 0x85c], eax
mov edx, dword [ebp - 0x85c]
cmp edx, dword [0x428e30]
je 0x409368
lea ecx, [ebp - 0x858]
call fcn.004026e0
cmp dword [ebp - 0x85c], eax
je 0x409368
lea ecx, [ebp - 0x858]
call fcn.004026e0
sub eax, dword [ebp - 0x85c]
push eax
mov eax, dword [ebp - 0x85c]
add eax, 1
push eax
lea ecx, [ebp - 0x87c]
push ecx
lea ecx, [ebp - 0x858]
call fcn.00402220
lea ecx, [ebp - 0x87c]
call fcn.004015e0
push eax
call fcn.0041392a
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40935d
mov dword [ebp - 0x21c], 1
lea ecx, [ebp - 0x87c]
call fcn.00401140
mov edx, dword [ebp - 8]
push edx
call fcn.00412ac7
add esp, 4
mov eax, dword [ebp - 0x860]
mov dword [ebp - 0x88c], eax
mov ecx, dword [ebp - 0x88c]
push ecx
call fcn.00411e58
add esp, 4
lea ecx, [ebp - 0x858]
call fcn.00401140
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x890], edx
lea ecx, [ebp - 0x434]
call fcn.00405690
lea ecx, [ebp - 0x438]
call fcn.00405690
lea ecx, [ebp - 4]
call fcn.00405690
mov eax, dword [ebp - 0x890]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret