Function at 0x5262d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x2b0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0x62f624
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa0]
and eax, 0x40
test al, al
je 0x526333
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb8]
jmp 0x526341
mov eax, dword [0x62f280]
mov eax, dword [eax + 0x8c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x94]
mov eax, 0
mov ecx, 0x1a
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9a]
and eax, 1
test al, al
jne 0x5264c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516af2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
jne 0x5263b6
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047dc5f
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 4]
mov eax, dword [0x62f280]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004378b0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x97]
and eax, 0x20
test al, al
je 0x526419
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.005251fc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x830]
test eax, eax
je 0x52643f
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.0052525d
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005255c9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
je 0x52649d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516adf
test eax, eax
jne 0x52649d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516d0e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_putc
jmp 0x526e44
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa0]
and eax, 1
test al, al
je 0x526530
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 2
test al, al
jne 0x526530
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58c]
cmp eax, 0xa
jne 0x526512
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 4
test al, al
jne 0x526512
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516c8d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_putc
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xa0]
or edx, 1
mov byte [eax + 0xa0], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516af2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
call fcn.005247a6
test eax, eax
je 0x5265a9
mov dword [esp + 0x10], 1
lea eax, [ebp - 0x94]
add eax, 0x28
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
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.00525989
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x74], 1
jmp 0x526806
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 8
je 0x526806
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x570]
mov dword [esp + 4], 6
mov dword [esp], eax
call fcn.004f5d01
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
je 0x526620
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x5c55ff
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
jne 0x52663f
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047dc5f
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 4]
mov eax, dword [0x62f280]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004378b0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x97]
and eax, 0x20
test al, al
je 0x5266a2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.005251fc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x830]
test eax, eax
je 0x5266c8
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.0052525d
cmp dword [ebp - 0x14], 0
je 0x526709
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 4]
mov eax, dword [0x62f280]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004378b0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x608]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__from__s_
mov dword [esp], edx
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x570]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004f5d01
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005255c9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
jne 0x526772
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 4], eax
mov dword [esp], 0x20
call sub.cygwin1.dll_putc
jmp 0x52679c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_putc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516c0c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x82c]
test eax, eax
je 0x526806
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
shr al, 3
and eax, 1
movzx ecx, al
mov eax, dword [ebp + 8]
lea ebx, [eax + 0xa4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
sete al
movzx edx, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x82c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045a0e6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
je 0x526e43
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa0]
and eax, 0x10
test al, al
je 0x52683b
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525d98
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526243
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x5268c6
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x98], 0x62f624
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 8
sete al
movzx eax, al
mov dword [ebp - 0x1c], eax
call fcn.00426fc8
mov edx, dword [ebp - 0x10]
lea ecx, [edx + 4]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0xa0]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00544a54
mov dword [esp + 4], 0
lea eax, [ebp - 0xa0]
mov dword [esp], eax
call fcn.0048a853
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
js 0x5268f1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x104]
test eax, eax
je 0x5268f1
mov dword [esp], 2
call fcn.0042ca33
mov dword [esp], eax
call fcn.00449cbf
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xa4]
mov dword [ebp - 0x84], edx
mov edx, dword [eax + 0xa8]
mov dword [ebp - 0x80], edx
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
shr al, 3
and eax, 1
and eax, 1
mov edx, eax
movzx eax, byte [ebp - 0x78]
and eax, 0xfffffffe
or eax, edx
mov byte [ebp - 0x78], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5b0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
shr al, 4
and eax, 1
movzx eax, al
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
shr al, 5
and eax, 1
and eax, 1
mov edx, eax
movzx eax, byte [ebp - 0x4c]
and eax, 0xfffffffe
or eax, edx
mov byte [ebp - 0x4c], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x82c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x120]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x570]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb0]
mov dword [ebp - 0x70], eax
call fcn.00426fc8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xe8]
test eax, eax
je 0x5269f7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x5269f7
mov eax, dword [ebp + 8]
add eax, 0xe0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
je 0x526a18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00515c56
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x94]
mov dword [esp], eax
call fcn.0044e113
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x104]
test eax, eax
je 0x526a5c
mov dword [esp + 8], 1
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0056810e
mov eax, dword [ebp - 0x94]
cmp eax, 8
je 0x526aae
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x526aae
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test al, al
je 0x526aae
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call fcn.005247a6
test eax, eax
je 0x526a9c
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526265
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00524678
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x11c]
test eax, eax
je 0x526aee
mov eax, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 8], edx
mov dword [esp + 4], str.log_size__i_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516c0c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x526b07
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub eax, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x526b1c
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xa1]
or edx, 4
mov byte [eax + 0xa1], dl
jmp 0x526b2f
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xa1]
and edx, 0xfffffffb
mov byte [eax + 0xa1], dl
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
lea ecx, [ebp - 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00516eba
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 2
test al, al
je 0x526bba
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
call fcn.0044954a
test eax, eax
jne 0x526bba
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 4
test al, al
jne 0x526b9c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516c8d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x608]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_putc
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call fcn.005247a6
test eax, eax
je 0x526cc3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x878]
test eax, eax
je 0x526cc3
mov eax, dword [0x62f9c0]
mov dword [ebp - 0xac], eax
mov eax, dword [0x62f9c4]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x62f9c8]
mov dword [ebp - 0xa4], eax
mov dword [0x62f9c0], 0
mov dword [0x62f9c4], 0
mov eax, dword [0x62f9c4]
mov dword [0x62f9c8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526265
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x880]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5c561f
mov dword [esp], eax
call fcn.0048c914
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x4a4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x87c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x878]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004f02a2
mov eax, dword [ebp - 0xac]
mov dword [0x62f9c0], eax
mov eax, dword [ebp - 0xa8]
mov dword [0x62f9c4], eax
mov eax, dword [ebp - 0xa4]
mov dword [0x62f9c8], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call fcn.005247a6
test eax, eax
je 0x526e44
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x884]
test eax, eax
je 0x526e44
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x88c]
mov dword [ebp - 0xc8], eax
movzx eax, byte [ebp - 0xc4]
or eax, 1
mov byte [ebp - 0xc4], al
lea eax, [ebp - 0x28c]
mov dword [ebp - 0xc0], eax
mov eax, dword [0x62f9c0]
mov dword [ebp - 0xb8], eax
mov eax, dword [0x62f9c4]
mov dword [ebp - 0xb4], eax
mov eax, dword [0x62f9c8]
mov dword [ebp - 0xb0], eax
mov dword [0x62f9c0], 0
mov dword [0x62f9c4], 0
mov eax, dword [0x62f9c4]
mov dword [0x62f9c8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00526265
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x890]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5c561f
mov dword [esp], eax
call fcn.0048c914
mov eax, dword [0x62f280]
lea edx, [ebp - 0x28c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004fbd89
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x608]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x570]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x28c]
mov dword [esp], eax
call fcn.004fc010
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x888]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x884]
lea ecx, [ebp - 0xc8]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00557e3e
mov eax, dword [ebp - 0xb8]
mov dword [0x62f9c0], eax
mov eax, dword [ebp - 0xb4]
mov dword [0x62f9c4], eax
mov eax, dword [ebp - 0xb0]
mov dword [0x62f9c8], eax
jmp 0x526e44
nop
add esp, 0x2b0
pop ebx
pop edi
pop ebp
ret