Function at 0x46e8cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x46e8d4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46eee1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 0xc6], 0
jne 0x46e937
mov eax, ebx
call fcn.0046e44c
test al, 2
je 0x46e910
mov byte [ebx + 0xc6], 3
jmp 0x46e937
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
jne 0x46e927
mov eax, ebx
call fcn.0046e44c
test al, 1
je 0x46e930
mov byte [ebx + 0xc6], 2
jmp 0x46e937
mov byte [ebx + 0xc6], 1
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2c]
call fcn.00405024
cmp byte [ebx + 0xc6], 1
je 0x46e971
cmp byte [ebx + 0xc6], 3
sete al
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046d670
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00405024
mov eax, ebx
call fcn.0046e44c
test al, 4
setne cl
mov dl, 1
mov eax, ebx
call fcn.0046ce74
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0xe0]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
jne 0x46ea42
mov eax, ebx
call fcn.0046e44c
test al, 4
je 0x46ea42
cmp byte [ebx + 0x78], 2
je 0x46e9ca
cmp word [ebp - 0x16], 0
jne 0x46ea42
cmp byte [ebx + 0xc6], 1
jne 0x46e9e2
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.0046f464
jmp 0x46e9fe
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x28]
inc eax
call fcn.00409680
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 0x46eefc
call fcn.0040529c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0046f8d4
sub eax, 0xfffffffe
je 0x46ea2a
dec eax
jne 0x46ea42
push 1
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
jmp 0x46ea42
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
jne 0x46ea57
cmp byte [ebx + 0xc6], 1
je 0x46ea5d
mov edi, dword [ebx + 0x28]
inc edi
jmp 0x46ea8e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.004054b0
mov eax, dword [ebp - 0x2c]
mov edx, 1
call fcn.00409828
mov edi, eax
test edi, edi
jge 0x46ea8e
mov edi, 1
movzx eax, byte [0x46ef04]
mov byte [ebx + 0x79], al
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046c934
mov esi, eax
cmp esi, 6
jne 0x46eaf3
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
je 0x46eaf3
mov eax, ebx
call fcn.0046e44c
test al, 2
je 0x46eaf3
mov eax, dword [ebx + 0x60]
call fcn.00409cb0
test al, al
je 0x46eaf3
mov ecx, edi
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.0046c934
mov esi, eax
cmp esi, 6
jne 0x46eaf3
mov eax, dword [ebx + 0x74]
cmp byte [eax + 0x2c], 0
sete dl
mov eax, dword [ebx + 0x60]
call fcn.00466dc0
test esi, esi
je 0x46eb0d
cmp esi, 2
je 0x46eb0d
cmp esi, 7
jne 0x46eb25
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
je 0x46eb25
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
cmp esi, 7
jne 0x46eb42
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x46eeb9
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046d924
test al, al
jne 0x46ebcd
lea ecx, [ebp - 8]
mov edx, 0x2b01
mov eax, dword [ebx + 0x10]
call fcn.0046b7fc
push 0x11271c
movzx eax, word [0x46ef08]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.0046ba68
mov esi, eax
test esi, esi
jne 0x46eb98
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
cmp esi, 4
je 0x46ebb5
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x46eeb9
mov eax, dword [ebx + 0x70]
call fcn.0046c4e0
cmp dword [ebx + 0x28], 0
jne 0x46ebe6
mov eax, ebx
call fcn.0046e22c
test eax, eax
ja 0x46ebf1
mov eax, ebx
call fcn.0046e224
test eax, eax
jbe 0x46ec5f
mov eax, ebx
call fcn.0046e22c
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x46ec28
mov eax, ebx
call fcn.0046e22c
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x70]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.0046f438
mov eax, ebx
call fcn.0046e224
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x46ec5f
mov eax, ebx
call fcn.0046e224
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x70]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.0046f430
mov eax, dword [ebx + 0x70]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push edx
push eax
mov eax, ebx
call fcn.0046e224
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, ebx
call fcn.0046e260
cmp edx, 0
jne 0x46ec95
cmp eax, 0
jbe 0x46ecb9
jmp 0x46ec97
jle 0x46ecb9
mov eax, ebx
call fcn.0046e260
cmp edx, dword [ebx + 0xc]
jne 0x46ecaa
cmp eax, dword [ebx + 8]
jae 0x46ecb9
jmp 0x46ecac
jge 0x46ecb9
mov eax, ebx
call fcn.0046e260
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x28], 0
jne 0x46ecdf
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push edx
push eax
mov eax, ebx
call fcn.0046e22c
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, ebx
call fcn.0046e280
xor edx, edx
cmp edx, dword [ebx + 0xc]
jne 0x46ecf8
cmp eax, dword [ebx + 8]
jbe 0x46ee2c
jmp 0x46ecfe
jle 0x46ee2c
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x128]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x12c]
mov dword [ebp - 0x1c], edx
mov eax, ebx
call fcn.0046d7c0
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
cmp word [ebp - 0x1e], 0
je 0x46edaf
cmp byte [ebx + 0xc6], 1
je 0x46ed41
mov edi, dword [ebx + 0x28]
inc edi
jmp 0x46ed72
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.004054b0
mov eax, dword [ebp - 0x30]
mov edx, 1
call fcn.00409828
mov edi, eax
test edi, edi
jge 0x46ed72
mov edi, 1
mov byte [ebx + 0x78], 1
movzx eax, byte [0x46ef0c]
mov byte [ebx + 0x79], al
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x79]
push eax
lea eax, [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, edi
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
cmp byte [ebx + 0x78], 4
jne 0x46eda8
mov esi, 2
jmp 0x46eddb
mov esi, 4
jmp 0x46eddb
lea ecx, [ebp - 8]
mov edx, 0x2b18
mov eax, dword [ebx + 0x10]
call fcn.0046b7fc
push 0x11271d
movzx eax, word [0x46ef08]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.0046ba68
mov esi, eax
test esi, esi
jne 0x46edf7
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
cmp esi, 4
je 0x46ee14
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x46eeb9
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
jne 0x46ee75
cmp byte [ebx + 0xc6], 1
jne 0x46ee75
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.0046f464
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x70]
call fcn.0046c244
test al, al
jne 0x46ee75
push 1
mov ecx, 0x2afd
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
mov eax, dword [ebx + 0x70]
call fcn.0046c0fc
test al, al
jne 0x46eeb9
cmp dword [ebx + 0xc], 0
jne 0x46ee92
cmp dword [ebx + 8], 0x400000
ja 0x46eeb9
jmp 0x46ee94
jg 0x46eeb9
mov eax, dword [ebx + 8]
push eax
lea eax, [ebx + 0x88]
mov ecx, 1
mov edx, dword [0x46c4ec]
call fcn.00406428
add esp, 4
xor eax, eax
mov dword [ebx + 0x80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eee8
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00404fb0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
ret