Function at 0x404a77
Capabilities:
Delete file

Disassembly:
mov eax, 0x4c8329
call fcn.004c2540
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x404e54
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404e54
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x404ab2
push 1
push eax
call fcn.0040494d
push 0xa0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x404aca
mov esi, eax
call fcn.0048ee3c
jmp 0x404acc
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x404add
mov eax, 0x8007000e
jmp 0x404e59
xor ecx, ecx
cmp dword [0x4ebaf8], 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 [0x4ebb00]
push dword [ebp + 0xc]
push eax
call fcn.0048f2b2
mov esi, eax
cmp esi, edi
mov eax, dword [ebx + 0x24]
jge 0x404b29
cmp eax, edi
je 0x404b21
push 1
push eax
call fcn.0040494d
mov dword [ebx + 0x24], edi
jmp 0x404e50
lea esi, [ebp + 0xc]
call fcn.0040463f
mov dword [ebp - 4], edi
cmp dword [0x4ebb04], edi
je 0x404b4f
mov ecx, dword [ebx + 0x24]
push edi
call fcn.0048f619
mov esi, dword [ebx + 0x24]
push 1
call fcn.0048fc96
cmp dword [0x4ebb08], edi
je 0x404b66
mov ecx, dword [ebx + 0x24]
push 0x4ebb5c
push 1
call fcn.0048fcb8
cmp dword [0x4ebb0c], edi
je 0x404b7c
push dword [0x4ebb2c]
mov ecx, dword [ebx + 0x24]
call fcn.0048fd4a
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x24], edi
call fcn.00404657
mov ebx, eax
call fcn.004043ac
mov eax, dword [edi]
and word [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x404c04
mov eax, dword [0x4ebafc]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x404bba
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 0x404bd3
push 0x10
pop ecx
cmp eax, ecx
je 0x404bd3
cmp eax, 0x18
je 0x404bd3
cmp eax, 0x20
je 0x404bd3
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.00403898
push ebx
push dword [0x4ebaf8]
push 0x4ebc90
call fcn.004a64bd
mov edi, eax
test edi, edi
jge 0x404c45
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404c3c
push 1
push eax
call fcn.0040494d
and dword [esi + 0x24], 0
jmp 0x404da9
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 0x404caa
push 0x4cc33c
lea edi, [ebp - 0x20]
call fcn.00402e10
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040302d
mov edi, dword [ebp + 0x10]
push edi
call fcn.00405b3e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x404c94
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x404cad
push eax
call fcn.004013aa
jmp 0x404cad
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
call fcn.00403c4e
test eax, eax
je 0x404d6b
mov eax, dword [0x4ebb14]
cmp eax, 1
jne 0x404d18
mov eax, dword [0x4e9150]
push dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0x814d
push eax
call fcn.00405bca
add esp, 0xc
push 0x40024
push dword [0x4eb3dc]
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 [0x4e9154]
je 0x404d1f
push eax
call fcn.004013aa
jmp 0x404d1f
cmp eax, 2
jne 0x404d23
xor esi, esi
test esi, esi
je 0x404d63
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x404d37
push 1
push eax
call fcn.0040494d
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x24], edi
je 0x404d47
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 0x404d5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x404e59
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.004a653b
mov edi, eax
test edi, edi
jge 0x404dc1
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404d93
push 1
push eax
call fcn.0040494d
and dword [esi + 0x24], 0
cmp dword [ebp - 0x10], 0
je 0x404da5
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 0x404dba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404e59
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00406134
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov esi, ebx
call fcn.00406134
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x404df1
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404df1
call fcn.0040496e
mov ecx, dword [ebp + 8]
call fcn.00403d35
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 0x404e1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404e2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x404e3b
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 0x404e50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x404e59
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10