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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x417738]
mov ecx, dword [0x417794]
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 [0x417738]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x417738]
push 0x7e
push 0x2e
push eax
call fcn.004033b0
mov ecx, dword [0x417738]
add esp, 0xc
push ecx
call fcn.004016a0
mov edx, dword [0x417738]
add esp, 4
push 0x413218
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00405020
add esp, 8
lea ecx, [ebp - 0x31c]
push 0x100
push 0
push ecx
call fcn.00401470
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x403486
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40000
call fcn.0040ba70
add esp, 4
mov ebx, eax
mov eax, dword [0x4177a8]
push 0
push eax
push esi
call fcn.00401570
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x403565
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], 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 - 0x114]
push edi
push 0x41321c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x403532
mov eax, dword [0x417734]
test eax, eax
je 0x403526
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0x405
push str.Dialog1005
call fcn.004017f0
add esp, 0x10
test eax, eax
je 0x403526
lea ecx, [ebp - 0x114]
push ecx
jmp 0x40352b
push str.Reading_package...
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x41775c]
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 [0x4177a4]
xor esi, esi
test eax, eax
jle 0x40364e
lea eax, [esi + 1]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [0x417738]
push eax
push 0x413240
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x218]
push 0x180
push 0x101
push edx
call fcn.00401470
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40366c
mov eax, dword [0x416238]
mov dword [ebp - 8], 0
mov edi, dword [eax + esi*4]
test edi, edi
je 0x403632
mov eax, dword [0x41621c]
test eax, eax
jne 0x403632
cmp edi, 0x40000
mov esi, 0x40000
ja 0x4035e6
mov esi, edi
mov ecx, dword [ebp - 4]
push esi
push ebx
push ecx
call fcn.00401520
mov edx, dword [ebp - 0xc]
add esp, 0xc
push eax
push ebx
push edx
call fcn.00401540
add esp, 0xc
push 0
call fcn.00401300
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add esp, 4
add edx, esi
sub edi, esi
mov dword [ebp - 8], edx
push 0
push 0
push 0x405
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test edi, edi
jne 0x4035ce
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401560
mov esi, dword [ebp - 0x10]
mov eax, dword [0x4177a4]
add esp, 4
cmp esi, eax
jl 0x403574
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401560
add esp, 4
push ebx
call fcn.0040bb20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push eax
call fcn.00401560
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret