Function at 0x403c11
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.00403eb2
push dword [0x415150]
call fcn.00401511
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.00404359
add esp, 0xc
test eax, eax
jne 0x403cbf
push 0xfffffffffffffff6
jmp 0x403eaf
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.00401751
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x403cf6
push 5
jmp 0x403eaf
push 0x40000
call fcn.004071da
push ebx
mov dword [ebp - 4], eax
push dword [0x415104]
push dword [ebp - 8]
call fcn.004017f3
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x403d3a
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 0x403e46
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.00401751
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x403e64
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 0x403e01
cmp dword [0x4150ec], ebx
jne 0x403e01
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 0xc], eax
ja 0x403dba
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00401808
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0x18]
call fcn.0040182a
push ebx
call fcn.004037ac
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 0x403da3
push dword [ebp - 0x18]
call fcn.0040184c
cmp dword [0x4150ec], ebx
pop ecx
jne 0x403e1f
mov eax, dword [0x415110]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi + eax]
jne 0x403e8c
lea eax, [ebp - 0x120]
push eax
call fcn.0040512a
pop ecx
mov ecx, dword [0x415114]
cmp eax, dword [edi + ecx]
jne 0x403e8c
mov esi, dword [ebp - 0x1c]
cmp esi, dword [0x41510c]
jl 0x403d48
push dword [ebp - 8]
call fcn.0040184c
cmp dword [ebp - 4], ebx
pop ecx
je 0x403e5d
push dword [ebp - 4]
call fcn.004071ab
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.0040184c
cmp dword [ebp - 4], ebx
pop ecx
je 0x403e88
push dword [ebp - 4]
call fcn.004071ab
pop ecx
push 6
jmp 0x403eaf
cmp dword [ebp - 4], ebx
mov dword [0x4150f4], 1
je 0x403ea4
push dword [ebp - 4]
call fcn.004071ab
pop ecx
push dword [ebp - 8]
call fcn.0040184c
pop ecx
push 2
pop eax
jmp 0x403e5f