Function at 0x414802
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push dword [ebx]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
call fcn.00426304
mov cl, byte [esi + 0x24]
push dword [ebx]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x18]
mov byte [ebp - 0xc], cl
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
lea edx, [edx*2 + 2]
sar ecx, 3
push 0xc
push eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
call fcn.00425182
xor ecx, ecx
inc ecx
add esp, 0x14
cmp eax, ecx
je 0x41486f
xor al, al
jmp 0x4149ef
cmp dword [esi + 0x14], 8
jb 0x414877
mov esi, dword [esi]
push edi
push dword [ebx]
push ecx
push dword [ebp - 0x10]
push esi
call fcn.00425182
xor edi, edi
inc edi
add esp, 0x10
cmp eax, edi
je 0x414895
xor al, al
jmp 0x4149ee
xor eax, eax
and dword [ebp - 0x24], eax
xor ecx, ecx
and dword [ebp - 0x30], ecx
and dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
mov esi, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
cmp esi, dword [eax + 4]
je 0x414918
mov ebx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041bc8b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x414902
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x38]
inc ecx
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041bce0
lea ecx, [ebp - 0x14]
call fcn.004199bd
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi]
jne 0x4148d9
add esi, 8
cmp esi, dword [ebx + 4]
jne 0x4148bc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x3c]
jmp 0x41491b
mov esi, dword [ebp - 0x14]
push dword [ebx]
sub ecx, edx
push edi
and ecx, 0xfffffffc
push ecx
push edx
call fcn.00425182
xor ecx, ecx
inc ecx
add esp, 0x10
cmp eax, ecx
jne 0x4149d7
push dword [ebx]
mov eax, dword [ebp - 0x2c]
sub esi, eax
push ecx
and esi, 0xfffffff8
push esi
push eax
call fcn.00425182
add esp, 0x10
cmp eax, 1
jne 0x4149c8
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
jmp 0x4149be
mov eax, dword [edi]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4149b8
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x414972
mov ecx, dword [ecx]
push dword [ebx]
inc eax
push 1
push eax
push ecx
call fcn.00425182
xor ecx, ecx
inc ecx
add esp, 0x10
cmp eax, ecx
jne 0x4149c8
mov eax, dword [esi + 0x38]
add esi, 0x28
cmp dword [esi + 0x14], 0x10
jb 0x414996
mov esi, dword [esi]
push dword [ebx]
inc eax
push ecx
push eax
push esi
call fcn.00425182
add esp, 0x10
cmp eax, 1
jne 0x4149c8
lea ecx, [ebp - 0x14]
call fcn.004199bd
mov esi, dword [ebp - 0x14]
cmp esi, dword [edi]
jne 0x414964
mov eax, dword [ebp - 0x18]
add edi, 8
cmp edi, dword [eax + 4]
jne 0x414959
inc dword [ebx + 8]
jmp 0x4149db
push 0
push dword [ebp - 0x1c]
push dword [ebx]
call fcn.00424fac
add esp, 0xc
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x2c]
call fcn.004035e9
lea ecx, [ebp - 0x38]
call fcn.004035e9
mov al, byte [ebp - 0x20]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret 4