Function at 0x52e834
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x52e83c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x52ee18
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 0xb6], 0
jne 0x52e8a2
mov eax, ebx
call fcn.00527250
test al, 2
je 0x52e878
mov byte [ebx + 0xb6], 3
jmp 0x52e8a2
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
jne 0x52e892
mov eax, ebx
call fcn.00527250
test al, 1
je 0x52e89b
mov byte [ebx + 0xb6], 2
jmp 0x52e8a2
mov byte [ebx + 0xb6], 1
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x48]
call fcn.00407848
cmp byte [ebx + 0xb6], 1
je 0x52e8dc
cmp byte [ebx + 0xb6], 3
sete al
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052dd40
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00407848
mov eax, ebx
call fcn.00527250
test al, 4
setne cl
mov dl, 1
mov eax, ebx
call fcn.0052d7a8
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x170]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x174]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
jne 0x52e9b0
mov eax, ebx
call fcn.00527250
test al, 4
je 0x52e9b0
cmp byte [ebx + 0xa0], 2
je 0x52e938
cmp word [ebp - 0x16], 0
jne 0x52e9b0
cmp byte [ebx + 0xb6], 1
jne 0x52e950
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x68]
mov eax, ebx
call fcn.0052f1cc
jmp 0x52e96c
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x68]
inc eax
call fcn.004155d4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 0x52ee38
call fcn.00407cc8
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0052f500
sub eax, 0xfffffffe
je 0x52e998
dec eax
jne 0x52e9b0
push 1
mov ecx, 0xf8e7802
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
jmp 0x52e9b0
push 0
mov ecx, 0xf8e8002
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
jne 0x52e9c8
cmp byte [ebx + 0xb6], 1
je 0x52e9ce
mov edi, dword [ebx + 0x68]
inc edi
jmp 0x52ea02
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.00407f34
mov eax, dword [ebp - 0x2c]
mov edx, 1
call fcn.004158d4
mov edi, eax
test edi, edi
jge 0x52ea02
mov edi, 1
movzx eax, byte [0x52ee48]
mov byte [ebx + 0xa1], al
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052d200
mov esi, eax
cmp esi, 6
jne 0x52ea78
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
je 0x52ea78
mov eax, ebx
call fcn.00527250
test al, 2
je 0x52ea78
mov eax, dword [ebx + 0x90]
call fcn.00415df4
test al, al
je 0x52ea78
mov ecx, edi
mov edx, dword [ebx + 0x90]
mov eax, ebx
call fcn.0052d200
mov esi, eax
cmp esi, 6
jne 0x52ea78
mov eax, ebx
call fcn.0052716c
test al, al
sete dl
mov eax, dword [ebx + 0x90]
call fcn.005223fc
test esi, esi
je 0x52ea95
cmp esi, 2
je 0x52ea95
cmp esi, 7
jne 0x52eaad
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
je 0x52eaad
push 0
mov ecx, 0xf8ed802
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
cmp esi, 7
jne 0x52eaca
xor eax, eax
mov dword [ebx + 0xb0], eax
mov byte [ebx + 0xb5], 1
mov byte [ebp - 0xd], 1
jmp 0x52edf0
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x28]
test al, al
jne 0x52eb37
lea ecx, [ebp - 8]
mov edx, 0xab
mov eax, ebx
call fcn.00527988
push 0x11271c
movzx eax, word [0x52ee4c]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.005279a4
mov esi, eax
cmp esi, 4
je 0x52eb1f
push 0
mov ecx, 0xf8f1802
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
xor eax, eax
mov dword [ebx + 0xb0], eax
mov byte [ebx + 0xb5], 1
mov byte [ebp - 0xd], 1
jmp 0x52edf0
mov eax, dword [ebx + 0x9c]
call fcn.00529d40
cmp dword [ebx + 0x68], 0
jne 0x52eb53
mov eax, ebx
call fcn.0052e1f0
test eax, eax
ja 0x52eb62
mov eax, ebx
call fcn.0052e1e8
test eax, eax
jbe 0x52ebe2
mov eax, ebx
call fcn.0052e1f0
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x52eba2
mov eax, ebx
call fcn.0052e1f0
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x9c]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.0052f0e0
mov eax, ebx
call fcn.0052e1e8
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x52ebe2
mov eax, ebx
call fcn.0052e1e8
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x9c]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.0052f0d8
mov eax, dword [ebx + 0x9c]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push edx
push eax
mov eax, ebx
call fcn.0052e1e8
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov eax, ebx
call fcn.0052e224
cmp edx, 0
jne 0x52ec1b
cmp eax, 0
jbe 0x52ec3f
jmp 0x52ec1d
jle 0x52ec3f
mov eax, ebx
call fcn.0052e224
cmp edx, dword [ebx + 0x64]
jne 0x52ec30
cmp eax, dword [ebx + 0x60]
jae 0x52ec3f
jmp 0x52ec32
jge 0x52ec3f
mov eax, ebx
call fcn.0052e224
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
cmp dword [ebx + 0x68], 0
jne 0x52ec65
mov eax, dword [ebx + 0x60]
mov edx, dword [ebx + 0x64]
push edx
push eax
mov eax, ebx
call fcn.0052e1f0
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov eax, ebx
call fcn.0052e244
xor edx, edx
cmp edx, dword [ebx + 0x64]
jne 0x52ec7e
cmp eax, dword [ebx + 0x60]
jbe 0x52eda1
jmp 0x52ec84
jle 0x52eda1
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x1c8]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x1cc]
mov dword [ebp - 0x1c], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
cmp word [ebp - 0x1e], 0
je 0x52ed45
cmp byte [ebx + 0xb6], 1
je 0x52ecc8
mov edi, dword [ebx + 0x68]
inc edi
jmp 0x52ecfc
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.00407f34
mov eax, dword [ebp - 0x30]
mov edx, 1
call fcn.004158d4
mov edi, eax
test edi, edi
jge 0x52ecfc
mov edi, 1
mov byte [ebx + 0xa0], 1
movzx eax, byte [0x52ee50]
mov byte [ebx + 0xa1], al
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0xa1]
push eax
lea eax, [ebx + 0xa0]
push eax
mov ecx, edi
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
cmp byte [ebx + 0xa0], 4
jne 0x52ed3e
mov esi, 2
jmp 0x52ed6f
mov esi, 4
jmp 0x52ed6f
lea ecx, [ebp - 8]
mov edx, 0x79
mov eax, ebx
call fcn.00527988
push 0x11271d
movzx eax, word [0x52ee4c]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.005279a4
mov esi, eax
cmp esi, 4
je 0x52ed8c
push 0
mov ecx, 0xf900c02
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
xor eax, eax
mov dword [ebx + 0xb0], eax
mov byte [ebx + 0xb5], 1
mov byte [ebp - 0xd], 1
jmp 0x52edf0
mov eax, dword [ebx + 0x9c]
call fcn.005298f4
test al, al
jne 0x52edf0
cmp byte [ebx + 0xb6], 1
jne 0x52edf0
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x68]
mov eax, ebx
call fcn.0052f1cc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x9c]
call fcn.00529a48
test al, al
jne 0x52edf0
push 1
mov ecx, 0xf9044ae
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ee1f
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004077ec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077ec
ret