Function at 0x403958
Capabilities:
Delete file

Disassembly:
mov eax, 0x416c6c
call fcn.0040c2b4
sub esp, 0x934
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x1d33c], eax
movzx esi, word [eax + 0x208]
cmp esi, ebx
mov dword [ebp - 0x18], esi
jne 0x4039d2
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x7e
push dword [0x41ec20]
call edi
lea eax, [ebp - 0x328]
push ebx
push eax
push 0x7f
push dword [0x41ec20]
call edi
lea eax, [ebp - 0x328]
push 0x10
push eax
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403e82
push 0x648c
push ebx
push edi
mov dword [edi + 0x1d338], ebx
mov dword [edi + 0xc918], ebx
call fcn.0040bd10
add esp, 0xc
mov dword [ebp - 0x14], ebx
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x104
jle 0x403bd6
cmp dword [edi + 0xc918], 0x62
jg 0x403bd6
push 0x250
call fcn.0040c383
pop ecx
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x403a32
mov ecx, eax
call fcn.0040409f
mov dword [ebp - 0x10], eax
jmp 0x403a36
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x1d33c]
or dword [ebp - 4], 0xffffffff
push 0
mov dword [ecx], eax
call fcn.0040415b
mov eax, dword [ebp - 0x10]
add eax, 0x120
push eax
lea eax, [ebp - 0x224]
push eax
call esi
mov eax, dword [0x41ec20]
lea ecx, [ebp - 0x83c]
push ebx
push ecx
push 0x84
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x1c
push eax
call esi
lea eax, [edi + 0x1d232]
push eax
lea eax, [ebp - 0x120]
push eax
call esi
lea eax, [ebp - 0x120]
push 0x41a3dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call esi
mov ecx, dword [ebp + 0x14]
call fcn.00405246
test eax, eax
je 0x403b56
mov eax, dword [0x41ec20]
lea ecx, [ebp - 0x42c]
push ebx
push ecx
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x41ec20]
lea ecx, [ebp - 0x634]
push ebx
push ecx
push 0x7f
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x634]
push 4
push eax
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x403c28
cmp dword [ebp - 0x14], 0
jne 0x403b60
fldz
jmp 0x403b6c
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
fmul dword [0x4172ac]
call fcn.0040cf24
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x120], eax
call fcn.00405171
mov ecx, dword [ebp + 0x14]
call fcn.00405246
mov eax, dword [edi + 0xc918]
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x208
add eax, edi
push eax
call fcn.00404a38
test eax, eax
jne 0x403bb2
inc dword [edi + 0xc918]
mov dword [edi + 0x1d338], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x403bc7
call fcn.004040d6
push dword [ebp - 0x10]
call fcn.0040bd00
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jl 0x403a03
mov ecx, dword [ebp + 0x10]
push 0
call fcn.004054da
cmp dword [edi + 0x1d338], 0
jne 0x403e82
mov ecx, dword [ebp + 0x10]
call fcn.00405299
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jle 0x403dd1
push 0x250
call fcn.0040c383
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x403c42
mov ecx, eax
call fcn.0040409f
mov dword [ebp + 0x10], eax
jmp 0x403c46
cmp dword [ebp - 0x10], 0
je 0x403e66
mov ecx, dword [ebp - 0x10]
call fcn.004040d6
push dword [ebp - 0x10]
jmp 0x403e60
and dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x1d33c]
or dword [ebp - 4], 0xffffffff
push 0
mov dword [ecx], eax
call fcn.0040415b
mov eax, dword [ebp + 0x10]
add eax, 0x120
push eax
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [ebp - 0x530]
push ebx
push eax
push 0x80
push dword [0x41ec20]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x1c
push eax
call esi
lea eax, [edi + 0x1d232]
push eax
lea eax, [ebp - 0x120]
push eax
call esi
lea eax, [ebp - 0x120]
push 0x41a3dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x1c
push eax
call esi
mov ecx, dword [ebp + 0x14]
call fcn.00405246
test eax, eax
je 0x403d66
lea eax, [ebp - 0x940]
push ebx
push eax
push 0x81
push dword [0x41ec20]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x738]
push ebx
push eax
push 0x7f
push dword [0x41ec20]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x738]
push 4
push eax
lea eax, [ebp - 0x940]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x403e4f
cmp dword [ebp - 0x14], 0
jne 0x403d70
fldz
jmp 0x403d7c
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
fmul dword [0x4172ac]
call fcn.0040cf24
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x120], eax
call fcn.00405171
mov ecx, dword [ebp + 0x14]
call fcn.00405246
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004046a2
test eax, eax
je 0x403e6b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x403dc2
call fcn.004040d6
push dword [ebp + 0x10]
call fcn.0040bd00
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jl 0x403c03
and dword [ebp + 0x14], 0
cmp word [edi + 0x1d12c], 0
jbe 0x403e3b
lea eax, [edi + 0x1d232]
push eax
lea eax, [ebp - 0x120]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push 0x41a3dc
push eax
call ebx
movzx eax, word [ebp + 0x14]
imul eax, eax, 0x104
lea eax, [eax + edi + 0xc91c]
push eax
lea eax, [ebp - 0x120]
push eax
call ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp + 0x14]
mov ax, word [ebp + 0x14]
cmp ax, word [edi + 0x1d12c]
jb 0x403ddf
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
cmp dword [ebp + 0x10], 0
je 0x403e66
mov ecx, dword [ebp + 0x10]
call fcn.004040d6
push dword [ebp + 0x10]
call fcn.0040bd00
pop ecx
or eax, 0xffffffff
jmp 0x403e3e
cmp dword [ebp + 0x10], 0
je 0x403e82
mov ecx, dword [ebp + 0x10]
call fcn.004040d6
push dword [ebp + 0x10]
call fcn.0040bd00
pop ecx
xor eax, eax
jmp 0x403e3e