Function at 0x402cf1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5710
call fcn.004041a0
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x20c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
and byte [ebp - 0x5710], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11ff
xor eax, eax
lea edi, [ebp - 0x570f]
and byte [ebp - 0xf10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2ff
xor eax, eax
lea edi, [ebp - 0xf0f]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push 5
push eax
call fcn.00402165
lea eax, [ebp - 0x108]
push eax
call fcn.00404590
add esp, 0xc
cmp byte [ebp + eax - 0x108], 0x5c
je 0x402db0
lea eax, [ebp - 0x108]
push eax
call fcn.00404590
pop ecx
mov byte [ebp + eax - 0x107], 0x5c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00404960
lea eax, [ebp - 0x108]
push str..exe
push eax
call fcn.00404960
xor esi, esi
push ebx
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004040c0
mov edi, 0x4800
lea eax, [ebp - 0x5710]
push edi
push esi
push eax
call fcn.004040c0
mov eax, dword [0x40d914]
add esp, 0x28
cmp dword [eax], esi
je 0x402f20
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [0x40d914]
push dword [esi + eax]
call fcn.00401074
lea eax, [ebp - 0x5710]
push edi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00401c74
mov esi, dword [ebp - 4]
add esp, 0x20
test eax, eax
je 0x402ee9
test esi, esi
jne 0x402e5c
lea eax, [ebp - 0x5710]
push eax
call fcn.00402c25
jmp 0x402eb4
cmp esi, 2
je 0x402ea8
cmp esi, 3
je 0x402ea8
cmp esi, 1
jne 0x402e79
lea eax, [ebp - 0x5710]
push eax
call fcn.00402a44
jmp 0x402eb4
cmp esi, 0xffffffff
jne 0x402e8c
lea eax, [ebp - 0x5710]
push eax
call fcn.00402b7f
jmp 0x402eb4
cmp esi, 0xfffffffe
je 0x402e9a
cmp esi, 0xfffffffd
jne 0x402f20
lea eax, [ebp - 0x5710]
push eax
call fcn.004029b2
jmp 0x402eb4
lea eax, [ebp - 0x5710]
push eax
call fcn.00402aea
test eax, eax
pop ecx
je 0x402ee9
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0xf10]
push eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00401074
lea eax, [ebp - 0xf10]
push eax
call fcn.00402cce
add esp, 0x18
test eax, eax
jne 0x402f20
push ebx
lea eax, [ebp - 0x310]
inc esi
push 0
push eax
mov dword [ebp - 4], esi
call fcn.004040c0
push edi
lea eax, [ebp - 0x5710]
push 0
push eax
call fcn.004040c0
mov eax, dword [0x40d914]
add esp, 0x18
shl esi, 2
cmp dword [esi + eax], 0
jne 0x402e0a
call fcn.004028a2
mov edi, eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00404590
cmp eax, 0x15
pop ecx
jb 0x402f8b
lea eax, [ebp - 0x5710]
push eax
call fcn.004029ae
test eax, eax
pop ecx
je 0x402f8b
lea eax, [ebp - 0xf10]
push 0x3a
push eax
call fcn.00404af0
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x402f8b
and byte [esi], 0
lea eax, [ebp - 0xf10]
push eax
call fcn.00404acb
cmp edi, eax
pop ecx
je 0x402f8b
push eax
call fcn.0040285e
lea eax, [ebp - 0x108]
inc esi
push eax
push esi
call fcn.00401d79
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret