Function at 0x4046b4
Capabilities:
Delete file

Disassembly:
mov eax, 0x4c553e
call fcn.004bf97c
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x404adf
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404adf
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4046ef
push 1
push eax
call fcn.0040458a
push 0xa0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x404707
mov esi, eax
call fcn.0048c91c
jmp 0x404709
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x40471a
mov eax, 0x8007000e
jmp 0x404ae4
xor ecx, ecx
cmp dword [0x4e61c0], edi
push 0xea60
sete cl
push edi
mov dword [ebp - 0x14], ecx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
inc ecx
push ecx
push 1
push dword [0x4e61c8]
push dword [ebp + 0xc]
push eax
call fcn.0048cdd2
mov esi, eax
cmp esi, edi
mov eax, dword [ebx + 0x24]
jge 0x404766
cmp eax, edi
je 0x40475e
push 1
push eax
call fcn.0040458a
mov dword [ebx + 0x24], edi
jmp 0x404adb
lea esi, [ebp + 0xc]
call fcn.00404294
mov dword [ebp - 4], edi
cmp dword [0x4e61cc], edi
je 0x40478c
mov ecx, dword [ebx + 0x24]
push edi
call fcn.0048d139
mov esi, dword [ebx + 0x24]
push 1
call fcn.0048d7b6
cmp dword [0x4e61d0], edi
je 0x4047a3
mov ecx, dword [ebx + 0x24]
push 0x4e6224
push 1
call fcn.0048d7d8
cmp dword [0x4e61d4], edi
je 0x4047b9
push dword [0x4e61f4]
mov ecx, dword [ebx + 0x24]
call fcn.0048d86a
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x28], edi
call fcn.004042ac
mov ebx, eax
call fcn.00404001
mov eax, dword [edi]
and word [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x404841
mov eax, dword [0x4e61c4]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4047f7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
je 0x404810
push 0x10
pop ecx
cmp eax, ecx
je 0x404810
cmp eax, 0x18
je 0x404810
cmp eax, 0x20
je 0x404810
mov dword [ebp - 0x14], ecx
mov eax, dword [edi]
mov word [eax], 1
mov eax, dword [edi]
mov cx, word [ebp - 0x14]
mov word [eax + 0xe], cx
mov eax, dword [edi]
mov cx, word [eax + 0xe]
shr cx, 3
imul cx, word [eax + 2]
mov word [eax + 0xc], cx
mov edi, dword [edi]
movzx eax, word [edi + 0xc]
imul eax, dword [edi + 4]
mov dword [edi + 8], eax
mov ebx, dword [ebp + 8]
add ebx, 0x1c
xor edi, edi
mov esi, ebx
call fcn.004039c8
push ebx
push dword [0x4e61c0]
push 0x4e6330
call fcn.004a417e
mov esi, eax
test esi, esi
jge 0x404882
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x404879
push 1
push eax
call fcn.0040458a
and dword [edi + 0x24], 0
jmp 0x404aca
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x40490b
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401721
pop ecx
pop ecx
push 0x4c91a8
lea edi, [ebp - 0x20]
mov esi, eax
call fcn.00402faf
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0040316e
mov edi, dword [ebp + 0x10]
push edi
call fcn.004057ee
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4048e1
push eax
call fcn.00401377
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4048f5
push eax
call fcn.00401377
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x40490e
push eax
call fcn.00401377
jmp 0x40490e
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
call fcn.00403d43
test eax, eax
je 0x4049cc
mov eax, dword [0x4e61dc]
cmp eax, 1
jne 0x404979
mov eax, dword [0x4e4150]
push dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0x814d
push eax
call fcn.00405867
add esp, 0xc
push 0x40024
push dword [0x4e5c1c]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
mov eax, dword [ebp + 0x10]
sub esi, 7
neg esi
sbb esi, esi
add eax, 0xfffffff4
inc esi
cmp eax, dword [0x4e4154]
je 0x404980
push eax
call fcn.00401377
jmp 0x404980
cmp eax, 2
jne 0x404984
xor esi, esi
test esi, esi
je 0x4049c4
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x404998
push 1
push eax
call fcn.0040458a
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x24], edi
je 0x4049a8
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], edi
je 0x4049bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x404ae4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi]
lea ecx, [ebp + 0x10]
push 0
push ecx
call fcn.00401809
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
mov eax, dword [eax]
mov ecx, dword [ebx]
push edx
push eax
call fcn.004a41fc
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x404a09
push eax
call fcn.00401377
test edi, edi
jge 0x404a4c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x404a21
push 1
push eax
call fcn.0040458a
cmp dword [ebp - 0x10], ebx
mov dword [esi + 0x24], ebx
je 0x404a31
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ebp - 0x10], ebx
je 0x404a45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404ae4
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00405dbc
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov esi, ebx
call fcn.00405dbc
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x404a7c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404a7c
call fcn.004045ab
mov ecx, dword [ebp + 8]
call fcn.00403e20
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add esi, 0x80004005
test eax, eax
je 0x404aa7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404ab8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x404ac6
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404adb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x404ae4
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10