Function at 0x419740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x34
call fcn.00525ec0
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0xffff
mov edx, ecx
push edi
mov dword [esp + 0x10], edx
cmp ax, si
jne 0x419792
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x4197cf
mov eax, dword [edx + 0x34]
mov ebx, dword [eax]
lea ebx, [ecx + ebx*2]
cmp ecx, ebx
jae 0x4197cf
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 2]
mov dword [eax], edx
mov word [ecx], si
mov ax, si
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
cmp eax, edi
je 0x419b67
cmp dword [edx + 0x3c], edi
jne 0x419810
push eax
push esi
call fcn.0050e0d3
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x419b6c
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xf
mov dword [esp + 0x3c], eax
movzx edx, si
mov byte [esp + 0x28], 0
pxor xmm0, xmm0
mov dword [esp + 0x38], edi
movq qword [esp + 0x28], xmm0
cmp eax, 0x10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], 8
jae 0x419848
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
jmp 0x419860
cmp edx, 0x10
jb 0x419ab6
mov ebx, eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x419897
mov ecx, eax
cmp edx, 0x10
jae 0x41987e
lea ecx, [esp + 0x28]
cmp ecx, ebx
ja 0x419897
mov ecx, eax
cmp edx, 0x10
jae 0x41988d
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jbe 0x4198a4
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4198cf
mov ecx, eax
cmp edx, 0x10
jae 0x4198b8
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jb 0x4198cf
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edx, 0x10
jb 0x419ac3
mov esi, eax
test eax, eax
je 0x41990a
mov ecx, eax
cmp edx, 0x10
jae 0x4198ed
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x41990a
mov ecx, eax
cmp edx, 0x10
jae 0x4198fc
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov ebx, dword [esp + 0x18]
cmp esi, ecx
jbe 0x419917
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x419938
cmp edx, 0x10
jae 0x419929
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x419938
call fcn.0050dd58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
add ebx, edi
push ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x26]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
add eax, 0x44
push eax
call edx
test eax, eax
jl 0x419b56
cmp eax, 1
jg 0x419ade
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x419acc
mov esi, eax
test eax, eax
je 0x4199b2
mov ecx, eax
cmp edx, 0x10
jae 0x419999
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x4199b2
mov ecx, eax
cmp edx, 0x10
jae 0x4199a8
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x4199bf
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4199ea
mov ecx, eax
cmp edx, 0x10
jae 0x4199d3
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x4199ea
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
sub edi, esi
je 0x419a7b
cmp edx, 0x10
jb 0x419ad5
mov esi, eax
test eax, eax
je 0x419a29
mov ecx, eax
cmp edx, 0x10
jae 0x419a10
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x419a29
mov ecx, eax
cmp edx, 0x10
jae 0x419a1f
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
jbe 0x419a36
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x419a57
cmp edx, 0x10
jae 0x419a48
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x419a57
call fcn.0050dd58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.0050deca
add esp, 0x10
cmp edi, eax
jne 0x419b56
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x42], 1
lea ecx, [esp + 0x14]
cmp dword [esp + 0x20], ecx
jne 0x419b2d
test edi, edi
ja 0x419860
cmp dword [esp + 0x38], 0x20
jae 0x419b56
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.00419e10
jmp 0x419850
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], ebx
jmp 0x419873
lea esi, [esp + 0x28]
jmp 0x4198e2
lea esi, [esp + 0x28]
jmp 0x41998e
lea esi, [esp + 0x28]
jmp 0x419a05
cmp eax, 3
jne 0x419b56
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00419710
movzx esi, word [ebp + 8]
add esp, 8
test al, al
jne 0x419b05
mov esi, 0xffff
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov ax, si
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov ax, word [ebp + 8]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov eax, 0xffff
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4