Function at 0x404792
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ce0cd
call fcn.004c7e20
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x404b6f
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404b6f
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4047cd
push 1
push eax
call fcn.00404668
push 0x98
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x4047e5
mov esi, eax
call fcn.004919bc
jmp 0x4047e7
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x4047f8
mov eax, 0x8007000e
jmp 0x404b74
xor ecx, ecx
cmp dword [0x4f3398], 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 [0x4f33a0]
push dword [ebp + 0xc]
push eax
call fcn.00491f5d
mov esi, eax
cmp esi, edi
mov eax, dword [ebx + 0x24]
jge 0x404844
cmp eax, edi
je 0x40483c
push 1
push eax
call fcn.00404668
mov dword [ebx + 0x24], edi
jmp 0x404b6b
lea esi, [ebp + 0xc]
call fcn.0040435a
mov dword [ebp - 4], edi
cmp dword [0x4f33a4], edi
je 0x40486a
mov ecx, dword [ebx + 0x24]
push edi
call fcn.004922c1
mov esi, dword [ebx + 0x24]
push 1
call fcn.00492a3b
cmp dword [0x4f33a8], edi
je 0x404881
mov ecx, dword [ebx + 0x24]
push 0x4f33fc
push 1
call fcn.00492a5d
cmp dword [0x4f33ac], edi
je 0x404897
push dword [0x4f33cc]
mov ecx, dword [ebx + 0x24]
call fcn.00492aef
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x24], edi
call fcn.00404372
mov ebx, eax
call fcn.004040a2
mov eax, dword [edi]
and word [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x40491f
mov eax, dword [0x4f339c]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4048d5
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 0x4048ee
push 0x10
pop ecx
cmp eax, ecx
je 0x4048ee
cmp eax, 0x18
je 0x4048ee
cmp eax, 0x20
je 0x4048ee
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.00403a55
push ebx
push dword [0x4f3398]
push 0x4f3508
call fcn.004aae70
mov edi, eax
test edi, edi
jge 0x404960
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404957
push 1
push eax
call fcn.00404668
and dword [esi + 0x24], 0
jmp 0x404ac4
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 0x4049c5
push 0x4d134c
lea edi, [ebp - 0x20]
call fcn.00402f03
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403120
mov edi, dword [ebp + 0x10]
push edi
call fcn.0040588c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4049af
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4049c8
push eax
call fcn.004013aa
jmp 0x4049c8
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
call fcn.00403dd0
test eax, eax
je 0x404a86
mov eax, dword [0x4f33b4]
cmp eax, 1
jne 0x404a33
mov eax, dword [0x4f0980]
push dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0x814d
push eax
call fcn.00405918
add esp, 0xc
push 0x40024
push dword [0x4f2c74]
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 [0x4f0984]
je 0x404a3a
push eax
call fcn.004013aa
jmp 0x404a3a
cmp eax, 2
jne 0x404a3e
xor esi, esi
test esi, esi
je 0x404a7e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x404a52
push 1
push eax
call fcn.00404668
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x24], edi
je 0x404a62
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 0x404a76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x404b74
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.004aaeee
mov edi, eax
test edi, edi
jge 0x404adc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404aae
push 1
push eax
call fcn.00404668
and dword [esi + 0x24], 0
cmp dword [ebp - 0x10], 0
je 0x404ac0
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 0x404ad5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404b74
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00405eb5
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov esi, ebx
call fcn.00405eb5
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x404b0c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404b0c
call fcn.00404689
mov ecx, dword [ebp + 8]
call fcn.00403eae
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 0x404b37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404b48
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x404b56
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 0x404b6b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x404b74
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10