Function at 0x40418b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
push dword [0x419190]
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
rep stosd dword es:[edi], eax
push ebx
push str.pftw
push dword [0x41920c]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [0x419190]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [0x419190]
call fcn.0040163b
mov dword [esp], 0x4161dc
push dword [0x419190]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x419118]
push dword [0x419190]
push dword [ebp + 8]
call fcn.004048d3
add esp, 0xc
test eax, eax
jne 0x404213
push 0xfffffffffffffff6
jmp 0x404421
push 0x100
push ebx
push dword [0x4191f4]
call fcn.00401952
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x404236
push 5
jmp 0x404421
push 0x40000
call fcn.0040776b
push ebx
mov dword [ebp - 4], eax
push dword [0x419114]
push dword [ebp - 8]
call fcn.004019f4
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x40427a
mov eax, dword [0x419118]
shr eax, 0x12
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor esi, esi
cmp dword [0x41911c], ebx
jle 0x4043b8
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x1c], eax
push dword [0x419190]
lea eax, [ebp - 0x120]
push str._spftw_d.pkg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x180
lea eax, [ebp - 0x120]
push 0x101
push eax
call fcn.00401952
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4043d6
mov eax, dword [0x419120]
mov edi, esi
shl edi, 2
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
mov esi, dword [edi + eax]
cmp esi, ebx
je 0x404341
cmp dword [0x4190fc], ebx
jne 0x404341
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 0x10], eax
ja 0x4042fa
mov dword [ebp - 0x10], esi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00401a09
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.00401a2b
push ebx
call fcn.00403ceb
add esp, 0x1c
sub esi, dword [ebp - 0x10]
add dword [ebp - 0xc], edi
push ebx
push ebx
push 0x405
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, dword [ebp - 0x18]
cmp esi, ebx
jne 0x4042e3
push dword [ebp - 0x14]
call fcn.00401a4d
cmp dword [0x4190fc], ebx
pop ecx
jne 0x404363
mov eax, dword [0x419120]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [edi + eax]
jne 0x4043fe
push 0x104
push dword [0x419188]
push 0x7f
push str.Dialog1005
call fcn.00401571
add esp, 0x10
push dword [0x419188]
push 0x7d
push dword [0x419108]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x120]
push eax
call fcn.004056ed
pop ecx
mov ecx, dword [0x419124]
cmp eax, dword [edi + ecx]
jne 0x4043fe
mov esi, dword [ebp - 0x1c]
cmp esi, dword [0x41911c]
jl 0x404288
push dword [ebp - 8]
call fcn.00401a4d
cmp dword [ebp - 4], ebx
pop ecx
je 0x4043cf
push dword [ebp - 4]
call fcn.0040781d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
call fcn.00401a4d
cmp dword [ebp - 4], ebx
pop ecx
je 0x4043fa
push dword [ebp - 4]
call fcn.0040781d
pop ecx
push 6
jmp 0x404421
cmp dword [ebp - 4], ebx
mov dword [0x419104], 1
je 0x404416
push dword [ebp - 4]
call fcn.0040781d
pop ecx
push dword [ebp - 8]
call fcn.00401a4d
pop ecx
push 2
pop eax
jmp 0x4043d1