Function at 0x719970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x60
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x719b48
mov edi, 0x7bea20
cmp eax, 0x20
je 0x7199bc
mov edi, str.0000000000000000
cmp eax, 0x30
je 0x7199bc
movd xmm0, eax
lea edi, [esp + 0x40]
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
cmp eax, 0xf
jle 0x719a6b
lea esi, [esi]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x719a20
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
test edx, edx
je 0x719ac0
xor esi, esi
jmp 0x7199f8
add esi, 1
cmp esi, 0x10
je 0x719a54
mov eax, dword [ebx]
mov dword [esp + 4], eax
movzx eax, word [edi + esi*2]
mov dword [esp], eax
call sub.msvcrt.dll_fputwc
cmp ax, 0xffff
jne 0x7199f0
add dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 8]
mov edx, 0x10
cmp eax, edx
cmova eax, edx
mov edx, dword [ebx + 4]
cmp eax, 4
jae 0x719af0
test eax, eax
je 0x719a4a
movzx ecx, byte [edi]
mov byte [edx], cl
test al, 2
jne 0x719bda
add dword [ebx + 4], eax
sub dword [ebx + 8], eax
add dword [ebx + 0xc], 0x10
add dword [esp + 0x28], 0x10
sub dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
jg 0x7199d8
mov esi, dword [esp + 0x2c]
test esi, esi
jle 0x719a14
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x719b86
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
test edx, edx
je 0x719c0b
xor esi, esi
jmp 0x719a9d
add esi, 1
cmp dword [esp + 0x2c], esi
je 0x719a10
mov eax, dword [ebx]
mov dword [esp + 4], eax
movzx eax, word [edi + esi*2]
mov dword [esp], eax
call sub.msvcrt.dll_fputwc
cmp ax, 0xffff
jne 0x719a90
jmp 0x719a10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
add dword [esp + 0x28], eax
cmp eax, 0x10
je 0x719a59
jmp 0x719a14
mov ecx, dword [edi]
lea esi, [edx + 4]
and esi, 0xfffffffc
mov dword [edx], ecx
mov ecx, dword [edi + eax - 4]
mov dword [edx + eax - 4], ecx
sub edx, esi
mov ecx, edi
sub ecx, edx
add edx, eax
and edx, 0xfffffffc
mov dword [esp + 0x24], ecx
cmp edx, 4
jb 0x719a4a
mov dword [esp + 0x1c], eax
and edx, 0xfffffffc
xor ecx, ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + ecx]
mov dword [esi + ecx], eax
add ecx, 4
cmp ecx, edx
jb 0x719b2b
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x719a4a
mov edi, 0x7bea50
cmp eax, 0x20
je 0x7199bc
mov edi, 0x7bea40
cmp eax, 0x30
je 0x7199bc
movsx eax, al
lea edi, [esp + 0x30]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x30], xmm0
jmp 0x7199bc
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 8]
cmp eax, edx
cmovbe edx, eax
mov eax, dword [ebx + 4]
cmp edx, 4
jb 0x719be9
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [edi + edx - 4]
mov dword [eax + edx - 4], ecx
lea ecx, [eax + 4]
and ecx, 0xfffffffc
sub eax, ecx
sub edi, eax
add eax, edx
and eax, 0xfffffffc
mov esi, edi
cmp eax, 4
jb 0x719bf7
mov dword [esp + 0x24], edx
and eax, 0xfffffffc
mov edi, eax
xor eax, eax
mov edx, dword [esi + eax]
mov dword [ecx + eax], edx
add eax, 4
cmp eax, edi
jb 0x719bc7
mov edx, dword [esp + 0x24]
jmp 0x719bf7
movzx ecx, word [edi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x719a4a
test edx, edx
je 0x719bf7
movzx ecx, byte [edi]
mov byte [eax], cl
test dl, 2
jne 0x719c2e
mov eax, dword [esp + 0x2c]
add dword [ebx + 4], edx
sub dword [ebx + 8], edx
add dword [ebx + 0xc], eax
mov esi, eax
jmp 0x719a10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
mov esi, eax
jmp 0x719a10
movzx ecx, word [edi + edx - 2]
mov word [eax + edx - 2], cx
jmp 0x719bf7