Function at 0x43e560
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 0x53a498
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x38]
push eax
push 1
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
push 0
movlpd qword [ebp - 0x38], xmm0
mov byte [ebp - 0x11], 0
call fcn.0043e110
movzx ecx, byte [ebp - 0x11]
test al, al
lea eax, [ebp - 0x20]
mov edx, 1
push eax
push 0
push dword [ebx + 0xc]
cmovne ecx, edx
xorps xmm0, xmm0
push dword [ebx + 8]
mov dword [ebp - 0x30], ecx
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
call fcn.0043e110
test al, al
je 0x43e7c4
mov eax, dword [ebx + 8]
cmp dword [ebp - 0x20], eax
jne 0x43e7c4
mov eax, dword [ebx + 0xc]
cmp dword [ebp - 0x1c], eax
jne 0x43e7c4
mov eax, dword [edi]
test esi, esi
jne 0x43e65c
cmp eax, 0xffffffff
jne 0x43e61c
xor al, al
jmp 0x43e628
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 - 0x30], 0
je 0x43e655
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x34]
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
push dword [ebp - 0x38]
call fcn.0043e110
mov eax, esi
jmp 0x43e7ea
cmp eax, 0xffffffff
jne 0x43e665
xor al, al
jmp 0x43e671
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 0x43e634
lea esi, [edi + 4]
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
push dword [ebx + 0xc]
mov ecx, esi
mov dword [ebp - 0x24], esi
push dword [ebx + 8]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x1c], esp
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
jb 0x43e6c0
mov ecx, dword [esi]
mov dword [ebp - 0x24], ecx
cmp eax, 8
jae 0x43e6da
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
jmp 0x43e76e
or eax, 7
mov ecx, 0x7ffffffe
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [ebp - 0x3c], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x43e6fd
or ecx, 0xffffffff
jmp 0x43e705
cmp ecx, 0x1000
jb 0x43e72e
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.0050b0c8
add esp, 4
test eax, eax
je 0x43e800
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x43e741
test ecx, ecx
je 0x43e73f
push ecx
call fcn.0050b0c8
add esp, 4
mov esi, eax
jmp 0x43e741
xor esi, esi
push edi
push 4
call fcn.00401940
mov dword [eax], esi
mov eax, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x24]
push esi
call fcn.0050cad0
mov eax, dword [ebp - 0x28]
add esp, 0x14
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x1c]
call eax
mov edi, dword [ebp - 0x2c]
mov esi, eax
test esi, esi
jne 0x43e634
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x43e79e
xor al, al
jmp 0x43e7aa
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 0x43e634
mov esi, dword [ebp - 0x44]
jmp 0x43e685
cmp byte [ebp - 0x30], 0
je 0x43e7e5
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x34]
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
push dword [ebp - 0x38]
call fcn.0043e110
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.0050f799
int3