Function at 0x4086a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call fcn.0040f949
mov byte [ebp - 3], al
call fcn.0040faed
mov byte [ebp - 4], al
mov byte [ebp - 2], bl
cmp byte [0x4395da], bl
je 0x408902
cmp byte [ebp - 3], bl
jne 0x40890b
cmp al, bl
je 0x408846
mov edi, 0x103
push edi
lea eax, [ebp - 0x3e7]
push ebx
push eax
mov byte [ebp - 0x3e8], bl
call fcn.00416e30
push edi
lea eax, [ebp - 0x147]
push ebx
push eax
mov byte [ebp - 0x148], bl
call fcn.00416e30
add esp, 0x18
lea eax, [ebp - 0x3e8]
push eax
inc edi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x43d24c
lea eax, [ebp - 0x3e8]
push eax
push 0x43cfdc
lea eax, [ebp - 0x148]
push edi
push eax
call fcn.00416f6e
push 0x103
lea eax, [ebp - 0x2e3]
push ebx
push eax
mov byte [ebp - 0x2e4], bl
call fcn.00416e30
add esp, 0x20
push edi
lea eax, [ebp - 0x2e4]
push eax
call fcn.0040a4bd
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x43d260
lea eax, [ebp - 0x2e4]
push eax
call edi
test eax, eax
jbe 0x4087bd
mov edi, 0x4078bb
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
push 0x43d26c
call fcn.00406495
add esp, 0x10
cmp al, bl
jne 0x408812
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
push 0x43d2ac
jmp 0x408808
push 0x43d2ec
lea eax, [ebp - 0x2e4]
push eax
call edi
test eax, eax
jbe 0x4089c1
mov edi, 0x4078bb
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
push 0x43d2fc
mov byte [ebp - 2], 1
call fcn.00406495
add esp, 0x10
cmp al, bl
jne 0x408812
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
push 0x43d33c
call fcn.00406495
add esp, 0x10
cmp al, bl
sete byte [ebp - 1]
cmp al, bl
jne 0x408856
mov eax, dword [esi]
push 0x43d37c
push dword [eax*4 + 0x4394bc]
call fcn.00417e70
pop ecx
pop ecx
push 1
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
inc dword [esi]
cmp byte [ebp - 4], bl
jne 0x408918
mov eax, dword [0x439548]
mov esi, dword [eax + 0x64]
mov edi, dword [eax + 0x44]
jmp 0x408955
push 0x95
lea eax, [ebp - 0x1df]
push ebx
push eax
mov byte [ebp - 0x1e0], bl
call fcn.00416e30
inc dword [esi]
mov eax, dword [esi]
push 0x43d3a0
push dword [eax*4 + 0x4394bc]
call fcn.00417e70
mov edi, dword [ebp + 8]
add esp, 0x14
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
inc dword [esi]
push 0x43cfd8
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00416e30
lea eax, [ebp - 0x148]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x30], eax
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x28], 9
mov dword [ebp - 0x38], 0x43ca40
mov dword [ebp - 0x40], 0x440
call dword [0x4394f0]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x40883d
cmp byte [ebp - 3], bl
je 0x40883d
mov eax, dword [0x439548]
mov esi, dword [eax + 0x68]
mov edi, dword [eax + 4]
jmp 0x408955
mov eax, dword [0x439548]
cmp byte [ebp - 1], bl
je 0x408927
mov edi, dword [eax + 8]
jmp 0x408952
cmp byte [0x4395da], bl
jne 0x408937
mov esi, dword [eax + 0x78]
mov edi, dword [eax + 0x14]
jmp 0x408955
cmp dword [ebp - 8], 0x20
jle 0x40894f
mov esi, dword [eax + 0x70]
cmp byte [ebp - 2], bl
je 0x40894a
mov edi, dword [eax + 0x48]
jmp 0x408955
mov edi, dword [eax + 0x4c]
jmp 0x408955
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x74]
push 0x8e
push dword [0x439544]
call fcn.00401041
test eax, eax
je 0x4089c1
mov eax, dword [0x439548]
push dword [eax + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4089b2
mov eax, dword [0x439544]
mov ecx, dword [eax + 4]
mov ebx, eax
cmp ecx, 0x64
je 0x4089b2
push ecx
push eax
call fcn.00401041
push 0x8e
push ebx
mov dword [ebp - 8], eax
call fcn.00401041
mov ecx, dword [ebp - 8]
cmp eax, ecx
jle 0x4089b2
mov eax, dword [0x439548]
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x18]
push edi
push esi
push 0x8e
call fcn.00406311
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret