Function at 0x404eee
Capabilities:
Delete file

Disassembly:
mov eax, 0x4f39e7
call fcn.004eadec
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4052cb
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x4052cb
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x404f29
push 1
push eax
call fcn.00404dc4
push 0x98
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x404f41
mov esi, eax
call fcn.0049d93c
jmp 0x404f43
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x404f54
mov eax, 0x8007000e
jmp 0x4052d0
xor ecx, ecx
cmp dword [0x521c74], 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 [0x521c7c]
push dword [ebp + 0xc]
push eax
call fcn.0049de35
mov esi, eax
cmp esi, edi
mov eax, dword [ebx + 0x24]
jge 0x404fa0
cmp eax, edi
je 0x404f98
push 1
push eax
call fcn.00404dc4
mov dword [ebx + 0x24], edi
jmp 0x4052c7
lea esi, [ebp + 0xc]
call fcn.00404ab6
mov dword [ebp - 4], edi
cmp dword [0x521c80], edi
je 0x404fc6
mov ecx, dword [ebx + 0x24]
push edi
call fcn.0049e199
mov esi, dword [ebx + 0x24]
push 1
call fcn.0049e913
cmp dword [0x521c84], edi
je 0x404fdd
mov ecx, dword [ebx + 0x24]
push 0x521cd8
push 1
call fcn.0049e935
cmp dword [0x521c88], edi
je 0x404ff3
push dword [0x521ca8]
mov ecx, dword [ebx + 0x24]
call fcn.0049e9c7
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x24], edi
call fcn.00404ace
mov ebx, eax
call fcn.0040480c
mov eax, dword [edi]
and word [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x40507b
mov eax, dword [0x521c78]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405031
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 0x40504a
push 0x10
pop ecx
cmp eax, ecx
je 0x40504a
cmp eax, 0x18
je 0x40504a
cmp eax, 0x20
je 0x40504a
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.00403cd4
push ebx
push dword [0x521c74]
push 0x5224b0
call fcn.004bb67c
mov edi, eax
test edi, edi
jge 0x4050bc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4050b3
push 1
push eax
call fcn.00404dc4
and dword [esi + 0x24], 0
jmp 0x405220
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 0x405121
push 0x4f7544
lea edi, [ebp - 0x20]
call fcn.004031b3
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004033e6
mov edi, dword [ebp + 0x10]
push edi
call fcn.00405fdc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x40510b
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x405124
push eax
call fcn.004013aa
jmp 0x405124
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
call fcn.0040408d
test eax, eax
je 0x4051e2
mov eax, dword [0x521c90]
cmp eax, 1
jne 0x40518f
mov eax, dword [0x51a438]
push dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0x814d
push eax
call fcn.00406068
add esp, 0xc
push 0x40024
push dword [0x52224c]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
mov eax, dword [ebp + 0x10]
sub esi, 7
neg esi
sbb esi, esi
add eax, 0xfffffff4
inc esi
cmp eax, dword [0x51a43c]
je 0x405196
push eax
call fcn.004013aa
jmp 0x405196
cmp eax, 2
jne 0x40519a
xor esi, esi
test esi, esi
je 0x4051da
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x4051ae
push 1
push eax
call fcn.00404dc4
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x24], edi
je 0x4051be
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 0x4051d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x4052d0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, dword [ebx]
push eax
push edx
call fcn.004bb6fa
mov edi, eax
test edi, edi
jge 0x405238
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40520a
push 1
push eax
call fcn.00404dc4
and dword [esi + 0x24], 0
cmp dword [ebp - 0x10], 0
je 0x40521c
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 0x405231
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x4052d0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.004065d2
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov esi, ebx
call fcn.004065d2
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x405268
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405268
call fcn.00404de5
mov ecx, dword [ebp + 8]
call fcn.00404187
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add esi, 0x80004005
test eax, eax
je 0x405293
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4052a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x4052b2
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 0x4052c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4052d0
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10