Function at 0x5274d7
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 0x5274fc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x510]
test eax, eax
je 0x527503
mov eax, 1
jmp 0x527508
mov eax, 0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x52752c
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 8
test al, al
jne 0x52752c
mov eax, 0
jmp 0x527786
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004e60c1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004e5a54
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.0047d34e
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x527571
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x527571
mov eax, 1
jmp 0x527576
mov eax, 0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x52758f
cmp dword [ebp - 0x14], 0
jne 0x52758f
mov eax, 0
jmp 0x527786
cmp dword [ebp - 0x10], 0
jne 0x5275e6
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x99]
and eax, 0x20
test al, al
je 0x5275d0
mov eax, dword [ebp + 8]
add eax, 0x4a4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c530e
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004a9422
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526e4e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc0]
test eax, eax
sete al
movzx eax, al
jmp 0x527786
cmp dword [ebp - 0x1c], 0
je 0x5276df
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 0x52767e
cmp dword [ebp - 0x20], 0
je 0x527659
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005262d3
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 0x527786
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.00527253
jmp 0x527786
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 0x40
test al, al
je 0x5276a6
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00527039
jmp 0x527786
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 0x20
test al, al
je 0x5276d5
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
and eax, 2
test al, al
jne 0x5276df
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], edx
jmp 0x5276df
mov eax, 0
jmp 0x527786
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.004e60c1
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x4a4]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004e5a54
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5c530e
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004a938c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526e4e
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 0x527783
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
and eax, 2
test al, al
jne 0x527783
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 0x5276e6
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret