Function at 0xb8354
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.000140ac
xor eax, eax
push ebp
push 0xb86ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax + 0x1a8], 0xffffffff
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xba], 0
jne 0xb83c8
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x13c]
or al, byte [0xb86d8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x13c], al
mov eax, dword [ebp - 4]
add eax, 0x214
mov edx, dword [ebp - 8]
call fcn.00013ccc
jmp 0xb86af
xor edx, edx
push ebp
push 0xb8641
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
call fcn.00013ef8
test eax, eax
je 0xb83fe
push 1
lea ecx, [ebp - 0x2e]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebp - 4]
call fcn.000b6b48
mov eax, dword [ebp - 4]
add eax, 0x214
mov edx, dword [ebp - 8]
call fcn.00013ccc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a8], 0xffffffff
je 0xb8637
mov eax, dword [ebp - 4]
add eax, 0x1a8
call fcn.000b2024
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.000b62d8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x168]
call fcn.00014008
jne 0xb845c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb86af
mov eax, dword [ebp - 0xc]
call fcn.00013ef8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
xor edx, edx
add eax, 0x16
adc edx, 0
push edx
push eax
mov eax, ebx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0xb8492
cmp eax, 0xfffffffe
jbe 0xb84ac
jmp 0xb8494
jle 0xb84ac
push 1
mov ecx, 0x27dd
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov edx, 0x22
call fcn.00019444
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1a8], esi
inc esi
jne 0xb84e5
push 1
mov ecx, 0x2afa
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
xor edx, edx
call fcn.000b19f4
cmp edx, 0xffffffff
jne 0xb852e
cmp eax, 0xffffffff
jne 0xb852e
push 1
mov ecx, 0x2b00
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
lea edx, [ebp - 0x2e]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
mov ecx, 0x16
call fcn.000194a8
cmp eax, 0x16
jne 0xb8552
cmp dword [ebp - 0x2e], 0x6054b50
je 0xb856a
push 1
mov ecx, 0x2b03
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov word [ebp - 0x1a], bx
mov dword [ebp - 0x18], 0xffffffea
mov dword [ebp - 0x14], 0xffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
mov edx, 1
call fcn.000b19f4
cmp edx, 0xffffffff
jne 0xb85b7
cmp eax, 0xffffffff
jne 0xb85b7
push 1
mov ecx, 0x2b00
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov byte [ebp - 0xd], 1
lea edx, [ebp - 0x2e]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
mov ecx, 0x16
call fcn.000194d4
cmp eax, 0x16
je 0xb85ee
push 1
mov ecx, 0x2b16
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov eax, dword [ebp - 0xc]
call fcn.000140bc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
mov ecx, ebx
call fcn.000194d4
cmp ebx, eax
je 0xb8624
push 1
mov ecx, 0x2b02
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b2eb8
call fcn.000136a8
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb8694
mov eax, dword [ebp - 4]
add eax, 0x1a8
call fcn.000b2024
cmp byte [ebp - 0xd], 0
je 0xb86af
mov eax, dword [ebp - 4]
call fcn.000b7360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb86d1
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00013c9c
ret