Function at 0x490878
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x39
push 0
push 0
dec ecx
jne 0x490880
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405538
lea eax, [ebp - 0x178]
mov edx, dword [0x408224]
call fcn.00405b70
xor eax, eax
push ebp
push 0x4915cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x179], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b8], 0
mov dword [eax + 0x2bc], 0
mov eax, dword [ebp - 4]
add eax, 0x290
mov edx, dword [ebp - 8]
call fcn.0040510c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xfc]
call fcn.00405150
mov eax, dword [ebp - 8]
test eax, eax
je 0x490902
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
jne 0x490915
mov byte [ebp - 0x18e], 1
jmp 0x49091c
mov byte [ebp - 0x18e], 0
cmp byte [ebp - 0x18e], 0
je 0x490a4a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x49094d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x49094d
mov eax, dword [ebp - 8]
call fcn.004809b8
test al, al
jne 0x49096c
call fcn.0040b718
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0040a2cc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0xc], eax
jmp 0x4909e3
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x490978
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004055b0
lea ecx, [ebp - 0x178]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x27c]
mov eax, dword [ebp - 0x18]
call fcn.00409de0
test eax, eax
jne 0x4909c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov edx, dword [ebp - 0x178]
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x178]
call fcn.00409e54
jmp 0x4909e3
call fcn.0040b718
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0040a2cc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0xc], eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d24
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov word [eax + 0xa], 0
mov word [eax + 0x26], 0
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
call fcn.004809b8
test al, al
je 0x490bd0
mov eax, dword [ebp - 8]
call fcn.00409d20
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0x28], eax
jmp 0x490bd0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x184]
test al, al
jne 0x490b9d
mov edx, dword [ebp - 4]
cmp byte [edx + 0x185], 0
jne 0x490b9d
cmp byte [ebp - 0x18e], 0
jne 0x490b9d
mov eax, dword [ebp - 8]
call fcn.00409b90
test al, al
jne 0x490ab0
mov eax, dword [ebp - 4]
cmp word [eax + 0x222], 0
je 0x491583
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x224]
call dword [ebx + 0x220]
jmp 0x491583
mov eax, dword [ebp - 8]
call fcn.00409d20
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0x28], eax
mov byte [ebp - 0x18f], 0
xor eax, eax
push ebp
push 0x490b1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x27a]
or ax, 0
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47f9c0]
call fcn.0047fb38
mov edx, dword [ebp - 4]
mov dword [edx + 0x288], eax
mov byte [ebp - 0x18f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x490b6f
cmp byte [ebp - 0x18f], 0
jne 0x490acb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
call fcn.0047fc20
call fcn.00409cd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0xc], eax
jmp 0x490bd0
test al, al
je 0x490bb3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
mov edx, dword [ebp - 4]
mov dword [edx + 0x288], eax
call fcn.0040b718
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0040a2cc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28c], edx
xor ecx, ecx
push ebp
push 0x4914fc
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
je 0x490c1d
cmp byte [ebp - 0x18e], 0
jne 0x490c1d
mov eax, dword [ebp - 4]
push dword [eax + 0x194]
push dword [eax + 0x190]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d24
jmp 0x490c43
cmp byte [ebp - 0x18e], 0
jne 0x490c43
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d24
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1dc], 0
je 0x490c86
lea ecx, [ebp - 0x19c]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0048100c
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 8]
call fcn.00405150
cmp dword [ebp - 0x10], 0
je 0x490c86
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xfc]
xor edx, edx
call fcn.0048100c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6a], 0
jne 0x490c97
lea eax, [ebp - 8]
call fcn.00480fd0
cmp byte [ebp - 0x18e], 0
jne 0x490cc4
lea edx, [ebp - 0x1a0]
mov eax, dword [ebp - 8]
call fcn.0040a0cc
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00482b88
jmp 0x490cd4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
xor edx, edx
call fcn.00482b88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
call fcn.00418770
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481c34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov word [eax + 0x26], 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x12c]
call fcn.00481d7c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c6], 0
je 0x490e32
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 8]
call fcn.00409fc0
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0xc]
mov ecx, 0x4915ec
call fcn.004053d0
lea ecx, [ebp - 0x1a8]
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00480634
mov eax, dword [ebp - 0x1a8]
mov edx, 0x4915f8
call fcn.004054e0
jne 0x490d7c