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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
push dword [0x415150]
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
rep stosd dword es:[edi], eax
push ebx
push str.pftw
push dword [0x4151c8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [0x415150]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x7e
push 0x2e
push dword [0x415150]
call fcn.00403eb7
push dword [0x415150]
call fcn.00401516
add esp, 0x10
push 0x4141dc
push dword [0x415150]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x415108]
push dword [0x415150]
push dword [ebp + 8]
call fcn.0040435e
add esp, 0xc
test eax, eax
jne 0x403cc4
push 0xfffffffffffffff6
jmp 0x403eb4
lea eax, [ebp - 0x224]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00401756
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x403cfb
push 5
jmp 0x403eb4
push 0x40000
call fcn.0040712a
push ebx
mov dword [ebp - 4], eax
push dword [0x415104]
push dword [ebp - 8]
call fcn.004017f8
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x403d3f
mov eax, dword [0x415108]
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 [0x41510c], ebx
jle 0x403e4b
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x1c], eax
push dword [0x415150]
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.00401756
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x403e69
mov eax, dword [0x415110]
mov edi, esi
shl edi, 2
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov esi, dword [edi + eax]
cmp esi, ebx
je 0x403e06
cmp dword [0x4150ec], ebx
jne 0x403e06
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 0xc], eax
ja 0x403dbf
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040180d
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0x18]
call fcn.0040182f
push ebx
call fcn.004037b1
add esp, 0x1c
sub esi, dword [ebp - 0xc]
add dword [ebp - 0x10], edi
push ebx
push ebx
push 0x405
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, dword [ebp - 0x14]
cmp esi, ebx
jne 0x403da8
push dword [ebp - 0x18]
call fcn.00401851
cmp dword [0x4150ec], ebx
pop ecx
jne 0x403e24
mov eax, dword [0x415110]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi + eax]
jne 0x403e91
lea eax, [ebp - 0x120]
push eax
call fcn.0040507f
pop ecx
mov ecx, dword [0x415114]
cmp eax, dword [edi + ecx]
jne 0x403e91
mov esi, dword [ebp - 0x1c]
cmp esi, dword [0x41510c]
jl 0x403d4d
push dword [ebp - 8]
call fcn.00401851
cmp dword [ebp - 4], ebx
pop ecx
je 0x403e62
push dword [ebp - 4]
call fcn.004070fb
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.00401851
cmp dword [ebp - 4], ebx
pop ecx
je 0x403e8d
push dword [ebp - 4]
call fcn.004070fb
pop ecx
push 6
jmp 0x403eb4
cmp dword [ebp - 4], ebx
mov dword [0x4150f4], 1
je 0x403ea9
push dword [ebp - 4]
call fcn.004070fb
pop ecx
push dword [ebp - 8]
call fcn.00401851
pop ecx
push 2
pop eax
jmp 0x403e64