Function at 0x414602
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
mov esi, dword [ebp + 8]
push dword [ebx]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], esi
call fcn.00426304
push dword [ebx]
mov cl, byte [esi + 0x20]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
push eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xc], cl
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x10]
lea edx, [edx*2 + 2]
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 0x414667
xor al, al
jmp 0x4147f2
cmp dword [esi + 0x14], 8
jb 0x414671
mov eax, dword [esi]
jmp 0x414673
mov eax, esi
push edi
push dword [ebx]
push ecx
push dword [ebp - 0x10]
push eax
call fcn.00425182
xor edi, edi
inc edi
add esp, 0x10
cmp eax, edi
je 0x414691
xor al, al
jmp 0x4147f1
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 [esi + 0x18]
xor edx, edx
mov esi, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
cmp esi, eax
je 0x414715
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041bc8b
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x414700
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 + 8]
jne 0x4146d6
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
jne 0x4146b8
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x3c]
jmp 0x414718
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 0x4147da
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 0x4147cb
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edi, dword [eax]
cmp edi, eax
je 0x4147c6
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4147bc
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x414775
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 0x4147cb
mov eax, dword [esi + 0x38]
add esi, 0x28
cmp dword [esi + 0x14], 0x10
jb 0x414799
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 0x4147cb
lea ecx, [ebp - 0x14]
call fcn.004199bd
mov esi, dword [ebp - 0x14]
cmp esi, dword [edi + 8]
jne 0x414767
mov eax, dword [ebp - 0x1c]
mov edi, dword [edi]
cmp edi, dword [eax + 0x18]
jne 0x41475b
inc dword [ebx + 8]
jmp 0x4147de
push 0
push dword [ebp - 0x18]
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