Function at 0x40498c
Capabilities:
Delete file

Disassembly:
mov eax, 0x4f49aa
call fcn.004ebd20
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x404d69
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404d69
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4049c7
push 1
push eax
call fcn.00404862
push 0x98
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x4049df
mov esi, eax
call fcn.0049de7c
jmp 0x4049e1
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x4049f2
mov eax, 0x8007000e
jmp 0x404d6e
xor ecx, ecx
cmp dword [0x522c74], 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 [0x522c7c]
push dword [ebp + 0xc]
push eax
call fcn.0049e374
mov esi, eax
cmp esi, edi
mov eax, dword [ebx + 0x24]
jge 0x404a3e
cmp eax, edi
je 0x404a36
push 1
push eax
call fcn.00404862
mov dword [ebx + 0x24], edi
jmp 0x404d65
lea esi, [ebp + 0xc]
call fcn.00404548
mov dword [ebp - 4], edi
cmp dword [0x522c80], edi
je 0x404a64
mov ecx, dword [ebx + 0x24]
push edi
call fcn.0049e6d8
mov esi, dword [ebx + 0x24]
push 1
call fcn.0049ee64
cmp dword [0x522c84], edi
je 0x404a7b
mov ecx, dword [ebx + 0x24]
push 0x522cd8
push 1
call fcn.0049ee86
cmp dword [0x522c88], edi
je 0x404a91
push dword [0x522ca8]
mov ecx, dword [ebx + 0x24]
call fcn.0049ef18
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x24], edi
call fcn.00404560
mov ebx, eax
call fcn.00404299
mov eax, dword [edi]
and word [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x404b19
mov eax, dword [0x522c78]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x404acf
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 0x404ae8
push 0x10
pop ecx
cmp eax, ecx
je 0x404ae8
cmp eax, 0x18
je 0x404ae8
cmp eax, 0x20
je 0x404ae8
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.00403be9
push ebx
push dword [0x522c74]
push 0x5234b0
call fcn.004bbed7
mov edi, eax
test edi, edi
jge 0x404b5a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404b51
push 1
push eax
call fcn.00404862
and dword [esi + 0x24], 0
jmp 0x404cbe
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 0x404bbf
push 0x4f8544
lea edi, [ebp - 0x20]
call fcn.00403098
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004032df
mov edi, dword [ebp + 0x10]
push edi
call fcn.00405a57
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x404ba9
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x404bc2
push eax
call fcn.004013b2
jmp 0x404bc2
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
call fcn.00403fa2
test eax, eax
je 0x404c80
mov eax, dword [0x522c90]
cmp eax, 1
jne 0x404c2d
mov eax, dword [0x51b438]
push dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0x814d
push eax
call fcn.00405ae3
add esp, 0xc
push 0x40024
push dword [0x52324c]
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 [0x51b43c]
je 0x404c34
push eax
call fcn.004013b2
jmp 0x404c34
cmp eax, 2
jne 0x404c38
xor esi, esi
test esi, esi
je 0x404c78
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x404c4c
push 1
push eax
call fcn.00404862
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x24], edi
je 0x404c5c
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 0x404c70
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x404d6e
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.004bbf54
mov edi, eax
test edi, edi
jge 0x404cd6
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404ca8
push 1
push eax
call fcn.00404862
and dword [esi + 0x24], 0
cmp dword [ebp - 0x10], 0
je 0x404cba
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 0x404ccf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404d6e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040604d
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov esi, ebx
call fcn.0040604d
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x404d06
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404d06
call fcn.00404883
mov ecx, dword [ebp + 8]
call fcn.004040a5
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 0x404d31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404d42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x404d50
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 0x404d65
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x404d6e
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10