Function at 0x450939
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x18]
and eax, 1
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004508d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x18], eax
je 0x450bb6
cmp dword [ebp + 0xc], 0
jns 0x450997
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x450bb6
cmp dword [ebp - 0x14], 0
jne 0x4509db
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4509db
cmp dword [ebp + 0x10], 0
je 0x4509be
mov dword [esp + 4], 0x22
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x4509d7
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x22
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
cmp dword [ebp + 0x10], 0
je 0x4509fa
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0048b2d1
cmp dword [ebp + 0x14], 0
je 0x450a21
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x450a40
mov dword [esp + 4], 0x5c
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450a59
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x5c
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 0
js 0x450a87
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x5aaee0
movzx eax, byte [eax]
cmp al, 0x1f
jle 0x450ae5
cmp dword [ebp + 0x10], 0
je 0x450ab9
mov eax, dword [ebp - 0x1c]
add eax, 0x5aaee0
movzx eax, byte [eax]
movsx eax, al
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450adc
mov eax, dword [ebp - 0x1c]
add eax, 0x5aaee0
movzx eax, byte [eax]
movsx eax, al
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
jmp 0x45095d
cmp dword [ebp + 0x10], 0
je 0x450b06
mov eax, dword [ebp - 0x1c]
sar eax, 6
and eax, 3
add eax, 0x30
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450b27
mov eax, dword [ebp - 0x1c]
sar eax, 6
and eax, 3
lea edx, [eax + 0x30]
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
cmp dword [ebp + 0x10], 0
je 0x450b4c
mov eax, dword [ebp - 0x1c]
sar eax, 3
and eax, 7
add eax, 0x30
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450b6d
mov eax, dword [ebp - 0x1c]
sar eax, 3
and eax, 7
lea edx, [eax + 0x30]
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
cmp dword [ebp + 0x10], 0
je 0x450b8f
mov eax, dword [ebp - 0x1c]
and eax, 7
add eax, 0x30
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450bad
mov eax, dword [ebp - 0x1c]
and eax, 7
lea edx, [eax + 0x30]
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
jmp 0x45095d
cmp dword [ebp + 0x10], 0
je 0x450bd5
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0048b2d1
cmp dword [ebp + 0x14], 0
je 0x450bfc
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x450c11
mov eax, 0
jmp 0x450c50
cmp dword [ebp - 0x14], 0
jne 0x450c4d
cmp dword [ebp + 0x10], 0
je 0x450c30
mov dword [esp + 4], 0x22
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00450203
cmp dword [ebp + 0x14], 0
je 0x450c49
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x22
call sub.cygwin1.dll_fputc
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
leave
ret