Function at 0x490d65
Capabilities:
Delete file

Disassembly:
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x490d71
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.004057d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x490dab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c7], 0
je 0x490dab
lea ecx, [ebp - 0x1ac]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004857b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c8], 0
jne 0x490e21
cmp dword [ebp - 0xc], 0
je 0x490e21
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0040a014
cmp dword [ebp - 0x14], 0
je 0x490dea
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x490dda
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0xc]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.004055f0
lea ecx, [ebp - 0x1b0]
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004806ac
mov eax, dword [ebp - 0x1b0]
mov edx, 0x4915ec
call fcn.004054e0
jne 0x490e21
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.004055f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov edx, dword [ebp - 0xc]
call fcn.00482c00
lea ecx, [ebp - 0x18c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2a4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x490f04
mov byte [ebp - 0x179], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0xd2], 0
je 0x490e8c
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18f]
push eax
mov ebx, dword [ebp - 4]
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x490efa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x490efa
cmp byte [ebp - 0x18e], 0
jne 0x490efa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], edx
fild qword [ebp - 0x1b8]
mov eax, dword [ebp - 4]
fild qword [eax + 0x1b0]
fsubrp st(1)
mov eax, dword [ebp - 4]
fistp qword [eax + 0x1b0]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
call fcn.004041d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x288], edx
call fcn.00404af8
jmp 0x491583
mov byte [ebp - 0x18d], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x202], 0
je 0x490f3d
mov eax, dword [ebp - 4]
add eax, 0x2a4
push eax
lea eax, [ebp - 0x18d]
push eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x204]
call dword [ebx + 0x200]
cmp byte [ebp - 0x18d], 0
je 0x490ff7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x490fb8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x490fb8
cmp byte [ebp - 0x18e], 0
jne 0x490fb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], edx
fild qword [ebp - 0x1b8]
mov eax, dword [ebp - 4]
fild qword [eax + 0x1b0]
fsubrp st(1)
mov eax, dword [ebp - 4]
fistp qword [eax + 0x1b0]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
call fcn.004041d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x288], edx
mov eax, dword [ebp - 4]
cmp word [eax + 0xd2], 0
je 0x490fe6
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18f]
push eax
mov ebx, dword [ebp - 4]
mov cl, 7
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
mov byte [ebp - 0x179], 0
call fcn.00404af8
jmp 0x491583
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
cmp byte [eax + 0x21], 0
je 0x491063
mov eax, dword [ebp - 4]
call fcn.0048fff8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00482b60
cdq
cmp edx, dword [esp + 4]
jne 0x49102e
cmp eax, dword [esp]
pop edx
pop eax
jb 0x491063
jmp 0x491032
pop edx
pop eax
jl 0x491063
mov eax, dword [ebp - 4]
call fcn.0049010c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x12c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d7c
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481c34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
cmp byte [eax + 0x21], 0
je 0x4910e7
cmp byte [ebp - 0x18e], 0
jne 0x4910e7
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 4]
call fcn.00491fdc
mov eax, dword [ebp - 0x1c0]
lea edx, [ebp - 0x1bc]
call fcn.00480f5c
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 4]
add eax, 0x2ac
call fcn.0040510c
push 0xffff
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x105]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2ac]
mov dl, 1
mov eax, dword [0x47f9c0]
call fcn.0047fb38
mov edx, dword [ebp - 4]
mov dword [edx + 0x28c], eax
jmp 0x4910fe
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x284]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.004825fc
cmp byte [ebp - 0x18e], 0
je 0x491146
mov eax, dword [ebp - 4]
cmp word [eax + 0x212], 0
je 0x491135
push 0
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x214]
call dword [ebx + 0x210]
mov byte [ebp - 0x179], 1
call fcn.00404af8
jmp 0x491583
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x49118d
cmp byte [ebp - 0x18e], 0
jne 0x49118d
push ebp
call fcn.004902d0
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x134]
not eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x134], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
call fcn.004915fc
mov eax, dword [ebp - 4]
mov dword [eax + 0x134], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c0], 0
je 0x4911c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.0048d524
test al, al
je 0x491273
push ebp
lea eax, [ebp - 0x198]
call fcn.004907b4
pop ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2a4]
mov eax, ebx
call fcn.00481cec
push edx
push eax
mov eax, ebx
call fcn.00481cac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x491259
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cec
cmp edx, dword [ebp - 0x194]
jne 0x491214
cmp eax, dword [ebp - 0x198]
jbe 0x49123f
jmp 0x491216
jle 0x49123f
mov eax, dword [ebp - 8]
push eax
push 0
lea edx, [ebp - 0x1c4]
mov eax, 0xd0
call fcn.00409a7c
mov ecx, dword [ebp - 0x1c4]
mov edx, 0xd0
mov eax, dword [ebp - 4]
call fcn.004871f0
push dword [ebp - 0x194]
push dword [ebp - 0x198]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
mov word [eax + 0xa], 0
mov word [eax + 0x26], 0
jmp 0x491374
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
call fcn.00418770
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], edx
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 4]
call fcn.0048cc40
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x49131c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cec
cmp edx, dword [ebp - 0x194]
jne 0x4912d7
cmp eax, dword [ebp - 0x198]
jbe 0x491302
jmp 0x4912d9
jle 0x491302
mov eax, dword [ebp - 8]
push eax
push 0
lea edx, [ebp - 0x1c8]
mov eax, 0xd0
call fcn.00409a7c
mov ecx, dword [ebp - 0x1c8]
mov edx, 0xd0
mov eax, dword [ebp - 4]
call fcn.004871f0
push dword [ebp - 0x194]
push dword [ebp - 0x198]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481d24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
cmp byte [eax + 0x21], 0
jne 0x491357
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
call fcn.00418770
sub eax, dword [ebp - 0x188]
sbb edx, dword [ebp - 0x184]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cac
jmp 0x491374
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481cac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x134]
not eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x134], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2a4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c0]
cmp eax, 2
jg 0x4913a9
or word [edx + 8], 4
jmp 0x4913b3
cmp eax, 8
jl 0x4913b3
or word [edx + 8], 2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x491404
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
or word [eax + 8], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
cmp byte [eax + 0x21], 0
je 0x4913e5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c0], 0
jne 0x491404
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2a4]
mov eax, ebx
call fcn.00481c74
add eax, 0xc
adc edx, 0
push edx
push eax
mov eax, ebx
call fcn.00481cac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
call fcn.00418770
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.00481bfc
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x284]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a4]
call fcn.004825fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
cmp byte [eax + 0x21], 0
je 0x49146d
push ebp
call fcn.0049047c
pop ecx
jmp 0x491489
push dword [ebp - 0x184]
push dword [ebp - 0x188]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x284]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [ebp - 0x179], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491503
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.004041d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
call fcn.00405548
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x4914fb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x185], 0
jne 0x4914fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
call fcn.004041d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x288], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4915d6
lea eax, [ebp - 0x1c8]
mov edx, 4
call fcn.004050dc
lea eax, [ebp - 0x1b0]
mov edx, 6
call fcn.004050dc
lea eax, [ebp - 0x178]
mov edx, dword [0x408224]
call fcn.00405c40
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004050dc
ret