Function at 0x485250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, edx
push 0x4c3dd8
push eax
mov dword [ebp - 0xc8], eax
call fcn.00494396
mov ebx, eax
add esp, 8
mov dword [ebp - 0xa4], ebx
test ebx, ebx
jne 0x485297
push 0x4c9b18
call fcn.004857d0
add esp, 4
mov eax, dword [str.TC00]
mov ecx, dword [0x4c9ac8]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 4]
push ebx
mov dword [ebp - 0x90], eax
mov eax, dword [esi]
push 1
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push 0x14
push eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x8c], 0
call fcn.0049528d
mov ecx, esi
call fcn.00484f30
push ebx
push 1
push 3
push eax
mov dword [ebp - 0xbc], eax
call fcn.0049528d
mov ecx, dword [esi]
mov edi, 3
imul ecx, dword [esi + 4]
mov edx, 0xfffffffd
mov ebx, dword [ebp - 0x94]
mov esi, 9
movdqa xmm0, xmmword [0x4c9fb0]
add esp, 0x20
add dword [ebp - 0x8c], 3
mov dword [ebp - 0xac], 3
movdqu xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0xfffffff1
mov dword [ebp - 0x74], 0xffffffee
lea eax, [ecx + ecx*2]
mov dword [ebp - 0xb4], eax
lea ecx, [ebx + ebx*2]
mov eax, edi
sub eax, ebx
lea eax, [eax + eax*2]
mov dword [ebp - 0x70], eax
mov eax, 2
sub eax, ebx
lea eax, [eax + eax*2]
mov dword [ebp - 0x6c], eax
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x68], eax
lea eax, [ebx*4]
sub eax, ebx
neg eax
mov dword [ebp - 0x64], eax
mov eax, edx
sub eax, ecx
lea ecx, [ebx + ebx*2]
mov dword [ebp - 0x60], eax
add ecx, ecx
mov eax, 0xfffffffe
sub edi, ecx
sub eax, ebx
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x94]
lea eax, [eax + eax*2]
mov dword [ebp - 0x5c], eax
mov eax, edx
sub eax, ebx
mov ebx, 6
lea eax, [eax + eax*2]
mov dword [ebp - 0x58], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x54], eax
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x50], eax
lea eax, [edi*4]
sub eax, edi
neg eax
add eax, eax
mov dword [ebp - 0x48], eax
sub edx, ecx
mov edi, 0xfffffffa
mov dword [ebp - 0x44], edx
mov eax, edi
mov dword [ebp - 0xb0], 3
sub eax, ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x40], eax
mov edx, 0xfffffff7
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x94]
lea ecx, [eax + eax*8]
mov eax, ebx
sub eax, ecx
sub esi, ecx
mov dword [ebp - 0x34], eax
sub edx, ecx
mov eax, 3
mov dword [ebp - 0x38], esi
sub eax, ecx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x94]
mov esi, 0xfffffffd
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x94]
neg eax
shl eax, 3
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x2c], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x28], eax
mov eax, edi
sub eax, ecx
lea ecx, [edx + edx*2]
mov dword [ebp - 0x24], eax
mov eax, 3
shl ecx, 2
sub eax, ecx
sub ebx, ecx
mov dword [ebp - 0x18], eax
sub esi, ecx
lea eax, [edx*4]
mov dword [ebp - 0x1c], ebx
sub eax, edx
mov dword [ebp - 0x10], esi
neg eax
sub edi, ecx
shl eax, 2
cmp dword [ebp - 0xb4], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edi
jle 0x485759
mov edx, 3
lea esp, [esp]
or esi, 0xffffffff
mov dword [ebp - 0xc4], 0
xor ecx, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], ecx
jmp 0x4854b0
mov edi, dword [ebp + ecx*4 - 0x88]
mov ebx, dword [ebp - 0xbc]
lea eax, [edi + edx]
test eax, eax
jns 0x4854c8
xor eax, eax
jmp 0x485514
mov al, byte [edx + ebx]
lea ecx, [edx + ebx]
xor esi, esi
cmp al, byte [edi + ecx]
jne 0x4854f4
mov eax, edx
inc eax
inc esi
cmp eax, dword [ebp - 0xb4]
jge 0x4854f4
cmp esi, 0x10000
jge 0x4854f4
mov cl, byte [eax + ebx]
lea edx, [edi + eax]
cmp cl, byte [edx + ebx]
je 0x4854d7
mov ecx, dword [ebp - 0xc0]
mov eax, 0x55555556
imul esi
mov esi, dword [ebp - 0xb8]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xc4]
cmp edi, eax
jge 0x48552e
mov esi, ecx
mov edi, eax
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc4], edi
inc ecx
mov dword [ebp - 0xc0], ecx
cmp ecx, 0x20
jb 0x4854b0
cmp esi, 0xffffffff
mov esi, dword [ebp - 0xa8]
jne 0x485565
inc esi
add edx, 3
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], edx
cmp esi, 0x10078
jle 0x4856bd
test esi, esi
je 0x485612
push dword [ebp - 0xa4]
push 1
push 1
cmp esi, 0x7f
jg 0x48559c
lea eax, [esi - 1]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0049528d
add esp, 0x10
inc dword [ebp - 0x8c]
jmp 0x4855db
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x7f
push eax
call fcn.0049528d
push dword [ebp - 0xa4]
lea eax, [esi - 0x80]
push 1
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 2
push eax
call fcn.0049528d
add esp, 0x20
add dword [ebp - 0x8c], 3
push dword [ebp - 0xa4]
mov eax, dword [ebp - 0xb0]
lea esi, [esi + esi*2]
push 1
add eax, ebx
push esi
push eax
call fcn.0049528d
add dword [ebp - 0x8c], esi
add esp, 0x10
mov edx, dword [ebp - 0xac]
xor esi, esi
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xb8]
cmp eax, 0xffffffff
je 0x4856bd
cmp edi, 3
jg 0x485656
push dword [ebp - 0xa4]
lea eax, [eax*4 + 0x7f]
add eax, edi
push 1
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 1
push eax
call fcn.0049528d
add esp, 0x10
inc dword [ebp - 0x8c]
jmp 0x48569e
mov esi, dword [ebp - 0xa4]
lea eax, [eax*4 + 0x83]
push esi
push 1
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 1
push eax
call fcn.0049528d
push esi
lea eax, [edi - 4]
push 1
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 2
push eax
call fcn.0049528d
add esp, 0x20
add dword [ebp - 0x8c], 3
mov eax, dword [ebp - 0xac]
add eax, edi
xor esi, esi
mov dword [ebp - 0xa8], esi
lea edx, [eax + edi*2]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb0], edx
cmp edx, dword [ebp - 0xb4]
jl 0x485490
test esi, esi
je 0x485759
mov edi, dword [ebp - 0xa4]
push edi
push 1
push 1
cmp esi, 0x7f
jg 0x485701
lea eax, [esi - 1]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0049528d
add esp, 0x10
inc dword [ebp - 0x8c]
jmp 0x48573b
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x7f
push eax
call fcn.0049528d
push edi
lea eax, [esi - 0x80]
push 1
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 2
push eax
call fcn.0049528d
add esp, 0x20
add dword [ebp - 0x8c], 3
mov eax, dword [ebp - 0xb0]
lea esi, [esi + esi*2]
push edi
push 1
add eax, ebx
push esi
push eax
call fcn.0049528d
add esp, 0x10
add dword [ebp - 0x8c], esi
push dword [ebp - 0xbc]
call fcn.00494034
push dword [ebp - 0xa4]
call fcn.00494b54
mov edi, dword [ebp - 0xc8]
push 0x4c9b3c
push edi
call fcn.00494396
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x485796
push 0x4c9b18
call fcn.004857d0
add esp, 4
push esi
push 1
lea eax, [ebp - 0x9c]
push 0x14
push eax
call fcn.0049528d
push esi
call fcn.00494b54
add esp, 0x14
mov ecx, edi
call fcn.00484fb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret