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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x418814]
mov ecx, dword [0x418874]
push ebx
push esi
push edi
push eax
push 0
push str.pftw
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [0x418814]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x418814]
push 0x7e
push 0x2e
push eax
call fcn.004033f0
mov ecx, dword [0x418814]
add esp, 0xc
push ecx
call fcn.004016c0
mov edx, dword [0x418814]
add esp, 4
push 0x4141e8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x324]
push 0x104
push eax
call fcn.004054e0
add esp, 8
lea ecx, [ebp - 0x324]
push 0x100
push 0
push ecx
call fcn.00401480
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x4034c6
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40000
call fcn.0040c620
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x418888]
push 0
push eax
push esi
call fcn.00401590
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x4035c1
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x405
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea edx, [ebp - 0x11c]
push edi
push 0x4141ec
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x40358e
mov eax, dword [0x418810]
test eax, eax
je 0x403566
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0x405
push str.Dialog1005
call fcn.00401810
add esp, 0x10
test eax, eax
je 0x403566
lea ecx, [ebp - 0x11c]
jmp 0x403586
mov eax, dword [0x4188ac]
lea edx, [ebp - 0x428]
push 0x104
push edx
push 0x33
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x428]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x41883c]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
shr edx, 0x12
shl edx, 0x10
push edx
push 0
push 0x401
push 0x3f0
push esi
call edi
push 0
push 1
push 0x404
push 0x3f0
push esi
call edi
mov eax, dword [0x418884]
xor esi, esi
test eax, eax
jle 0x4036c9
lea eax, [esi + 1]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [0x418814]
push eax
push 0x4141fc
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x220]
push 0x180
push 0x101
push edx
call fcn.00401480
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4036ea
mov eax, dword [0x4172e0]
mov dword [ebp - 0xc], 0
shl esi, 2
mov dword [ebp - 0x14], esi
mov edi, dword [eax + esi]
test edi, edi
je 0x40369c
mov eax, dword [0x4172c4]
test eax, eax
jne 0x40369c
cmp edi, 0x40000
mov ebx, 0x40000
ja 0x403648
mov ebx, edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ebx
push ecx
push edx
call fcn.00401540
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 8]
push esi
push eax
push ecx
call fcn.00401560
add esp, 0xc
push 0
call fcn.00401300
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add esp, 4
add ecx, esi
sub edi, ebx
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0x405
push 0x3f0
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test edi, edi
jne 0x403630
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401580
mov ecx, dword [0x4172e0]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add esp, 4
cmp edx, dword [ecx + eax]
jne 0x40370f
mov esi, dword [ebp - 0x18]
mov eax, dword [0x418884]
cmp esi, eax
jl 0x4035d0
mov eax, dword [ebp - 4]
push eax
call fcn.00401580
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
call fcn.0040c6d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 4]
push edx
call fcn.00401580
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x4172bc], 1
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret