Function at 0x44b800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
xor esi, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov eax, edi
mov dword [ebp - 0x18], eax
test edi, edi
je 0x44bc2e
push ebx
mov ebx, dword [ebp + 0x10]
test esi, esi
js 0x44bc20
test edi, edi
je 0x44b997
cmp byte [edi + 0x40], 7
jne 0x44b997
test byte [edi + 0x3c], 1
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
je 0x44b86b
call fcn.0049a3f0
add esp, 0x10
cmp eax, 0xffffff36
je 0x44b880
or esi, 0xffffffff
jmp 0x44b880
call fcn.0049a3b0
add esp, 0x10
cmp eax, 0xffffff36
mov eax, 0xffffffff
cmovne esi, eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test edx, edx
jne 0x44b8f1
test ecx, ecx
je 0x44b8f1
cmp esi, 0xffffffff
je 0x44b8f1
push ecx
call fcn.00462980
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp - 8], edx
mov eax, 0xffffffff
cmove esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
test esi, esi
js 0x44b997
test ecx, ecx
je 0x44b989
test edx, edx
je 0x44b989
push eax
call fcn.00462980
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x44b921
mov edx, dword [ebp - 8]
or esi, 0xffffffff
mov eax, dword [ebp - 4]
mov ecx, edx
mov dword [ebp + 0xc], ecx
mov ebx, eax
jmp 0x44b99a
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x44b8b1
push ecx
push edx
call fcn.004629a0
mov ebx, dword [ebp - 4]
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
mov eax, 0xffffffff
mov ecx, edx
cmove esi, eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x44b8b4
test byte [edi + 0x3c], 1
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
je 0x44b95a
call fcn.0049a3f0
mov ebx, dword [ebp + 8]
add esp, 0x10
test eax, eax
jns 0x44b961
push ebx
or esi, 0xffffffff
call fcn.00462920
mov edx, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, edx
mov dword [ebp + 0xc], ecx
mov ebx, eax
jmp 0x44b99a
call fcn.0049a3b0
jmp 0x44b935
mov esi, dword [ebp - 4]
push esi
push ebx
push dword [ebp - 8]
call fcn.004bc760
add esp, 0xc
push ebx
call fcn.00462920
mov edx, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, edx
mov dword [ebp + 0xc], ecx
mov ebx, eax
jmp 0x44b99a
mov ecx, edx
mov esi, 0xffffff53
mov dword [ebp + 0xc], ecx
mov ebx, eax
jmp 0x44b99a
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x44bc12
mov al, byte [edi + 0x40]
mov byte [ebp + 0xb], al
cmp al, 5
jne 0x44ba7a
test ecx, ecx
je 0x44ba75
cmp dword [edi + 0x14], 0
mov esi, 0xfffffffe
je 0x44ba5f
mov eax, dword [edi + 0x24]
test ebx, ebx
jne 0x44b9e0
mov ecx, dword [edi + 0x1c]
add ecx, eax
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x1c], ecx
xor esi, esi
jmp 0x44ba7a
mov edx, dword [edi + 0x28]
cmp eax, edx
jge 0x44b9f3
mov esi, edx
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [edi + 0x20]
jmp 0x44ba2b
test edx, edx
jle 0x44ba03
cmp eax, edx
jne 0x44ba03
mov al, byte [ebp + 0xb]
or esi, 0xffffffff
jmp 0x44ba7a
mov esi, dword [edi + 0x20]
mov dword [ebp - 0xc], esi
sub esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jg 0x44ba2e
test edx, edx
jne 0x44ba1e
mov al, byte [ebp + 0xb]
or esi, 0xffffffff
jmp 0x44ba7a
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
jg 0x44ba29
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0xc], esi
cmp ebx, dword [ebp - 0x14]
mov esi, ebx
mov ecx, dword [edi + 0x1c]
cmovge esi, dword [ebp - 0x14]
add ecx, eax
add eax, esi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [edi + 0x24], eax
cmp eax, dword [ebp - 0xc]
jne 0x44ba5c
mov eax, esi
test edx, edx
jle 0x44ba5c
mov dword [edi + 0x24], 0
mov al, byte [ebp + 0xb]
test esi, esi
jle 0x44ba7a
push esi
push ecx
push dword [ebp - 0x1c]
call fcn.004bc760
mov al, byte [edi + 0x40]
add esp, 0xc
jmp 0x44ba7a
mov esi, 0xffffff53
cmp al, 4
mov eax, dword [ebp + 0xc]
jne 0x44bb3d
test eax, eax
je 0x44bb38
push edi
call fcn.0044b2f0
mov esi, eax
add esp, 4
test esi, esi
jns 0x44baa4
mov eax, dword [ebp + 0xc]
jmp 0x44bb3d
cmp dword [edi + 0x1c], 0
jne 0x44bad4
push ebx
call fcn.00462980
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x44bac1
mov eax, dword [ebp + 0xc]
xor esi, esi
jmp 0x44bb3d
mov ecx, dword [edi]
mov dword [edi + 0x30], ebx
test ecx, ecx
je 0x44bad4
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x30]
test ecx, ecx
jns 0x44bae3
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
jmp 0x44bb3d
lea eax, [esi + ebx]
cmp ecx, eax
jge 0x44bb1c
push eax
push dword [edi + 0x1c]
call fcn.004629a0
mov ecx, eax
add esp, 8
mov dword [edi + 0x1c], ecx
test ecx, ecx
jne 0x44bb06
mov eax, dword [ebp + 0xc]
xor esi, esi
jmp 0x44bb3d
lea eax, [esi + ebx]
mov dword [edi + 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x44bb1c
mov dword [eax], ecx
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1c]
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.004bc760
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [edi + 0x20], ebx
mov esi, ebx
jmp 0x44bb3d
mov esi, 0xffffff53
mov cl, byte [edi + 0x40]
cmp cl, 6
jne 0x44bb59
push dword [edi + 8]
push ebx
push 1
push eax
call fcn.004d9525
mov cl, byte [edi + 0x40]
add esp, 0x10
mov esi, eax
cmp cl, 3
jne 0x44bc12
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x38], 0
je 0x44bb73
or esi, 0xffffffff
jmp 0x44bc12
mov eax, dword [edi + 4]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44bb87
mov esi, 0xffffff53
jmp 0x44bc12
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44bbdd
test ebx, ebx
js 0x44bbdd
mov ecx, dword [eax + 0x340]
test ecx, ecx
je 0x44bbb3
push 1
push 8
push eax
call ecx
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax + 0x344], 8
push ebx
push esi
push eax
call fcn.00474630
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x44bbcf
mov eax, dword [edi + 4]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x18]
jmp 0x44bbe2
jne 0x44bc12
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x38], 1
jmp 0x44bc12
mov esi, 0xffffff53
test eax, eax
je 0x44bc0b
mov eax, dword [eax + 0x1c4]
cmp eax, 0xfffffebd
je 0x44bc12
cmp eax, 0xfffffeb9
je 0x44bc12
cmp eax, 0xfffffea9
je 0x44bc0b
cmp eax, 2
je 0x44bc12
cmp eax, 3
je 0x44bc12
mov dword [ecx + 0x38], 1
mov edi, dword [edi + 0x10]
mov edx, dword [ebp - 8]
test edi, edi
jne 0x44b826
pop ebx
test edx, edx
je 0x44bc2e
push edx
call fcn.00462920
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret