Function at 0x526edf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x99]
and eax, 8
test al, al
jne 0x526f04
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x510]
test eax, eax
je 0x526f0b
mov eax, 1
jmp 0x526f10
mov eax, 0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x526f34
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 8
test al, al
jne 0x526f34
mov eax, 0
jmp 0x52718e
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00412265
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00411bf8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004851a6
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x526f79
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x526f79
mov eax, 1
jmp 0x526f7e
mov eax, 0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x526f97
cmp dword [ebp - 0x14], 0
jne 0x526f97
mov eax, 0
jmp 0x52718e
cmp dword [ebp - 0x10], 0
jne 0x526fee
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x99]
and eax, 0x20
test al, al
je 0x526fd8
mov eax, dword [ebp + 8]
add eax, 0x4a4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c309e
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004b08da
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526856
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc0]
test eax, eax
sete al
movzx eax, al
jmp 0x52718e
cmp dword [ebp - 0x1c], 0
je 0x5270e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
and eax, 4
test al, al
je 0x527086
cmp dword [ebp - 0x20], 0
je 0x527061
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525cdb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x39
mov dword [esp + 4], 1
mov dword [esp], str.diff:_warning:_Skipping_remerge_diff_for_octopus_merges._n
call sub.cygwin1.dll_fwrite
mov eax, 1
jmp 0x52718e
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526c5b
jmp 0x52718e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 0x40
test al, al
je 0x5270ae
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526a41
jmp 0x52718e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 0x20
test al, al
je 0x5270dd
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
and eax, 2
test al, al
jne 0x5270e7
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], edx
jmp 0x5270e7
mov eax, 0
jmp 0x52718e
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00412265
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x4a4]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00411bf8
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5c309e
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b0844
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526856
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc0]
test eax, eax
sete al
movzx eax, al
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52718b
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
and eax, 2
test al, al
jne 0x52718b
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc0], edx
jmp 0x5270ee
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret