Function at 0x10133180
Capabilities:
Clear file content

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a2fd8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x101fe070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x38]
mov byte [ebp - 0x11], 0
push eax
push 1
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x38], xmm0
call fcn.10132d50
movzx ecx, byte [ebp - 0x11]
test al, al
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0
mov edx, 1
xorps xmm0, xmm0
cmovne ecx, edx
movlpd qword [ebp - 0x30], xmm0
push esi
push dword [ebx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, edi
call fcn.10132d50
test al, al
je 0x101333cd
mov eax, dword [ebx + 8]
cmp dword [ebp - 0x30], eax
jne 0x101333cd
cmp dword [ebp - 0x2c], esi
jne 0x101333cd
cmp dword [ebx + 0x10], 0
mov eax, dword [edi]
jne 0x10133276
cmp eax, 0xffffffff
jne 0x10133236
xor al, al
jmp 0x10133242
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
xor ecx, ecx
mov esi, 0x80004005
test al, al
cmovne esi, ecx
cmp byte [ebp - 0x20], 0
je 0x1013326f
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x34]
mov ecx, edi
movlpd qword [ebp - 0x30], xmm0
push dword [ebp - 0x38]
call fcn.10132d50
mov eax, esi
jmp 0x101333f3
cmp eax, 0xffffffff
jne 0x1013327f
xor al, al
jmp 0x1013328b
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
xor ecx, ecx
mov esi, 0x80004005
test al, al
cmovne esi, ecx
jne 0x1013324e
add edi, 4
mov dword [ebp - 0x24], edi
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
push 0
push eax
push dword [ebx + 0xc]
mov eax, ecx
mov dword [ebp - 0x18], ecx
push dword [ebx + 8]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x2c], esp
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ecx + 0x14], 8
mov edi, dword [ecx + 0x10]
jb 0x101332db
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
cmp edi, 8
jae 0x101332f2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
mov dword [esi + 0x14], 7
jmp 0x10133377
mov eax, edi
mov ecx, SysReAllocString
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [ebp - 0x28], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10133317
or ecx, 0xffffffff
jmp 0x1013331f
cmp ecx, 0x1000
jb 0x10133348
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1015c042
add esp, 4
test eax, eax
je 0x10133409
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1013335b
test ecx, ecx
je 0x10133359
push ecx
call fcn.1015c042
add esp, 4
mov ecx, eax
jmp 0x1013335b
xor ecx, ecx
lea eax, [edi*2 + 2]
mov dword [esi], ecx
push eax
push dword [ebp - 0x18]
push ecx
call fcn.1015ddb0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x1c]
call eax
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
jne 0x1013324e
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x101333aa
xor al, al
jmp 0x101333b6
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
xor ecx, ecx
mov esi, 0x80004005
test al, al
cmovne esi, ecx
je 0x101332a0
jmp 0x1013324e
cmp byte [ebp - 0x20], 0
je 0x101333ee
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x34]
mov ecx, edi
movlpd qword [ebp - 0x30], xmm0
push dword [ebp - 0x38]
call fcn.10132d50
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.101616ac
int3