Function at 0x4047b1
Capabilities:
Delete file

Disassembly:
mov eax, 0x414670
call fcn.0040ae24
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 0x40482b
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x7e
push dword [0x41ac70]
call edi
lea eax, [ebp - 0x328]
push ebx
push eax
push 0x7f
push dword [0x41ac70]
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 0x404c9d
push 0x648c
push ebx
push edi
mov dword [edi + 0x1d338], ebx
mov dword [edi + 0xc918], ebx
call fcn.0040a880
add esp, 0xc
mov dword [ebp - 0x14], ebx
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x104
jle 0x404a2f
cmp dword [edi + 0xc918], 0x62
jg 0x404a2f
push 0x250
call fcn.0040ae6d
pop ecx
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40488b
mov ecx, eax
call fcn.00404eba
mov dword [ebp - 0x10], eax
jmp 0x40488f
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.00404f76
mov eax, dword [ebp - 0x10]
add eax, 0x120
push eax
lea eax, [ebp - 0x224]
push eax
call esi
mov eax, dword [0x41ac70]
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 0x417898
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.00406002
test eax, eax
je 0x4049af
mov eax, dword [0x41ac70]
lea ecx, [ebp - 0x42c]
push ebx
push ecx
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x41ac70]
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 0x404a81
cmp dword [ebp - 0x14], 0
jne 0x4049b9
fldz
jmp 0x4049c5
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
fmul dword [0x4152a4]
call fcn.0040bbf8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x120], eax
call fcn.00405f84
mov ecx, dword [ebp + 0x14]
call fcn.00406002
mov eax, dword [edi + 0xc918]
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x208
add eax, edi
push eax
call fcn.0040584b
test eax, eax
jne 0x404a0b
inc dword [edi + 0xc918]
mov dword [edi + 0x1d338], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x404a20
call fcn.00404ef1
push dword [ebp - 0x10]
call fcn.0040a868
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jl 0x40485c
mov ecx, dword [ebp + 0x10]
push 0
call fcn.0040868d
cmp dword [edi + 0x1d338], 0
jne 0x404c9d
mov ecx, dword [ebp + 0x10]
call fcn.0040844c
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jle 0x404c2a
push 0x250
call fcn.0040ae6d
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x404a9b
mov ecx, eax
call fcn.00404eba
mov dword [ebp + 0x10], eax
jmp 0x404a9f
cmp dword [ebp - 0x10], 0
je 0x404c81
mov ecx, dword [ebp - 0x10]
call fcn.00404ef1
push dword [ebp - 0x10]
jmp 0x404c7b
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.00404f76
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 [0x41ac70]
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 0x417898
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.00406002
test eax, eax
je 0x404bbf
lea eax, [ebp - 0x940]
push ebx
push eax
push 0x81
push dword [0x41ac70]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x738]
push ebx
push eax
push 0x7f
push dword [0x41ac70]
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 0x404c6a
cmp dword [ebp - 0x14], 0
jne 0x404bc9
fldz
jmp 0x404bd5
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
fmul dword [0x4152a4]
call fcn.0040bbf8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x120], eax
call fcn.00405f84
mov ecx, dword [ebp + 0x14]
call fcn.00406002
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004054bd
test eax, eax
je 0x404c86
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404c1b
call fcn.00404ef1
push dword [ebp + 0x10]
call fcn.0040a868
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jl 0x404a5c
xor esi, esi
cmp word [edi + 0x1d12c], si
jbe 0x404c56
movzx eax, si
imul eax, eax, 0x104
lea eax, [eax + edi + 0xc91c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp si, word [edi + 0x1d12c]
jb 0x404c35
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 0x404c81
mov ecx, dword [ebp + 0x10]
call fcn.00404ef1
push dword [ebp + 0x10]
call fcn.0040a868
pop ecx
or eax, 0xffffffff
jmp 0x404c59
cmp dword [ebp + 0x10], 0
je 0x404c9d
mov ecx, dword [ebp + 0x10]
call fcn.00404ef1
push dword [ebp + 0x10]
call fcn.0040a868
pop ecx
xor eax, eax
jmp 0x404c59