Function at 0x40839a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa54
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
call fcn.004048fe
mov dword [ebp + 0x64], eax
cmp dword [0x43959c], ebx
je 0x408649
cmp eax, ebx
jne 0x408652
push 0x103
lea eax, [ebp - 0x1df]
push ebx
push eax
mov byte [ebp - 0x1e0], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x1e0]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.twcbdlinst.exe
lea eax, [ebp - 0x1e0]
push eax
push 0x43cfdc
lea eax, [ebp - 0x2e4]
push edi
push eax
call fcn.00416f6e
mov edi, dword [ebp + 0x78]
push 0x407773
push edi
lea eax, [ebp - 0x2e4]
push eax
push 0x43cca8
call fcn.00406495
movzx eax, al
xor ecx, ecx
add esp, 0x24
cmp eax, ebx
sete cl
mov dword [ebp + 0x68], ecx
cmp eax, ebx
jne 0x408484
mov eax, dword [esi]
push 0x43d1dc
push dword [eax*4 + 0x4394bc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
inc dword [esi]
mov eax, dword [0x439548]
cmp dword [0x43959c], ebx
jne 0x40865f
mov esi, dword [eax + 0x78]
mov edi, dword [eax + 0x14]
jmp 0x40867d
inc dword [esi]
mov eax, dword [esi]
push 0x43d204
push dword [eax*4 + 0x4394bc]
call fcn.00417e70
pop ecx
pop ecx
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
inc dword [esi]
mov esi, 0x4395a0
push esi
push 0x43cd70
lea eax, [ebp - 0x9e4]
push 0x200
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push 0x3ff
lea eax, [ebp - 0x7e3]
push ebx
push eax
mov byte [ebp - 0x7e4], bl
call fcn.00416e30
push 0x400
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x9e4]
push eax
call fcn.004060bc
push 0x31
lea eax, [ebp - 0x3f]
push ebx
push eax
mov byte [ebp - 0x40], bl
call fcn.00416e30
push 0x31
lea eax, [ebp - 0xa7]
push ebx
push eax
mov byte [ebp - 0xa8], bl
call fcn.00416e30
add esp, 0x40
push 0x31
lea eax, [ebp - 0xb]
push ebx
push eax
mov byte [ebp - 0xc], bl
call fcn.00416e30
push 0x31
lea eax, [ebp - 0xdb]
push ebx
push eax
mov byte [ebp - 0xdc], bl
call fcn.00416e30
push 0x31
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00416e30
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40858a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7e4]
call fcn.0040d14d
add esp, 0x14
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4395b4
push esi
lea eax, [ebp - 0x40]
push eax
push 0x4395d4
push 0x4395dc
mov esi, 0x4395c2
push esi
push 0x43d228
lea eax, [ebp - 0x3e4]
push 0xff
push eax
call fcn.00416f6e
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.004049ff
add esp, 0x4c
push 0x3c
pop esi
push esi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.00416e30
lea eax, [ebp - 0x2e4]
mov dword [ebp + 0x38], eax
lea eax, [ebp - 0x3e4]
mov dword [ebp + 0x3c], eax
add esp, 0xc
lea eax, [ebp + 0x28]
push eax
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], 0x43ca40
mov dword [ebp + 0x2c], 0x440
mov dword [ebp + 0x44], 9
call dword [0x4394f0]
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x60]
mov dword [ecx], eax
cmp dword [ebp + 0x64], ebx
je 0x408468
mov eax, dword [0x439548]
mov esi, dword [eax + 0x68]
mov edi, dword [eax + 4]
jmp 0x40867d
cmp dword [ebp + 0x68], ebx
je 0x408669
mov edi, dword [eax + 8]
jmp 0x40867a
cmp dword [ebp + 0x6c], 0x20
jle 0x408677
mov esi, dword [eax + 0x70]
mov edi, dword [eax + 0x1c]
jmp 0x40867d
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x74]
mov ebx, 0x86
push ebx
push dword [0x439544]
call fcn.00401041
test eax, eax
je 0x40869d
push edi
push esi
push ebx
call fcn.00406311
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret