Function at 0x525cdb
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], 0x61d2e4
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 0x525d3b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb8]
jmp 0x525d49
mov eax, dword [0x61cf40]
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 0x525ec8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516836
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
jne 0x525dbe
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00485ab7
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 4]
mov eax, dword [0x61cf40]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0043f288
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 0x525e21
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.00524c04
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x830]
test eax, eax
je 0x525e47
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.00524c65
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00524fd1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
je 0x525ea5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.00516823
test eax, eax
jne 0x525ea5
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.00516a52
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 0x52684c
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa0]
and eax, 1
test al, al
je 0x525f38
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 2
test al, al
jne 0x525f38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58c]
cmp eax, 0xa
jne 0x525f1a
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 4
test al, al
jne 0x525f1a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.005169d1
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.00516836
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
call fcn.005241ae
test eax, eax
je 0x525fb1
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.00525391
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x74], 1
jmp 0x52620e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 8
je 0x52620e
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.004f7ee5
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 0x526028
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], 0x5c338f
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
test eax, eax
jne 0x526047
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00485ab7
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x608]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 4]
mov eax, dword [0x61cf40]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0043f288
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 0x5260aa
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.00524c04
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x830]
test eax, eax
je 0x5260d0
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.00524c65
cmp dword [ebp - 0x14], 0
je 0x526111
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 4]
mov eax, dword [0x61cf40]
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0043f288
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.004f7ee5
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.00524fd1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
jne 0x52617a
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 0x5261a4
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.00516950
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x82c]
test eax, eax
je 0x52620e
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.00461522
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
cmp eax, 5
je 0x52684b
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa0]
and eax, 0x10
test al, al
je 0x526243
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005257a0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525c4b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x5262ce
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x98], 0x61d2e4
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.0042a90c
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.00544258
mov dword [esp + 4], 0
lea eax, [ebp - 0xa0]
mov dword [esp], eax
call fcn.00491d0b
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
js 0x5262f9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x104]
test eax, eax
je 0x5262f9
mov dword [esp], 2
call fcn.00433113
mov dword [esp], eax
call fcn.00450f1f
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.0042a90c
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 0x5263ff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x5263ff
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 0x526420
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.0051599a
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.00455373
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x104]
test eax, eax
je 0x526464
mov dword [esp + 8], 1
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00567492
mov eax, dword [ebp - 0x94]
cmp eax, 8
je 0x5264b6
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x5264b6
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test al, al
je 0x5264b6
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call fcn.005241ae
test eax, eax
je 0x5264a4
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525c6d
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00524080
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x11c]
test eax, eax
je 0x5264f6
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.00516950
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x52650f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub eax, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x526524
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xa1]
or edx, 4
mov byte [eax + 0xa1], dl
jmp 0x526537
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.00516bfe
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 2
test al, al
je 0x5265c2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
call fcn.004507aa
test eax, eax
jne 0x5265c2
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xa1]
and eax, 4
test al, al
jne 0x5265a4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x470]
mov dword [esp], eax
call fcn.005169d1
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.00491cd8
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.005241ae
test eax, eax
je 0x5266cb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x878]
test eax, eax
je 0x5266cb
mov eax, dword [0x61da80]
mov dword [ebp - 0xac], eax
mov eax, dword [0x61da84]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x61da88]
mov dword [ebp - 0xa4], eax
mov dword [0x61da80], 0
mov dword [0x61da84], 0
mov eax, dword [0x61da84]
mov dword [0x61da88], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525c6d
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], 0x5c33af
mov dword [esp], eax
call fcn.00493dcc
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.004f2486
mov eax, dword [ebp - 0xac]
mov dword [0x61da80], eax
mov eax, dword [ebp - 0xa8]
mov dword [0x61da84], eax
mov eax, dword [ebp - 0xa4]
mov dword [0x61da88], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call fcn.005241ae
test eax, eax
je 0x52684c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x884]
test eax, eax
je 0x52684c
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 [0x61da80]
mov dword [ebp - 0xb8], eax
mov eax, dword [0x61da84]
mov dword [ebp - 0xb4], eax
mov eax, dword [0x61da88]
mov dword [ebp - 0xb0], eax
mov dword [0x61da80], 0
mov dword [0x61da84], 0
mov eax, dword [0x61da84]
mov dword [0x61da88], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00525c6d
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], 0x5c33af
mov dword [esp], eax
call fcn.00493dcc
mov eax, dword [0x61cf40]
lea edx, [ebp - 0x28c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004fdf6d
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.004fe1f4
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.00557bde
mov eax, dword [ebp - 0xb8]
mov dword [0x61da80], eax
mov eax, dword [ebp - 0xb4]
mov dword [0x61da84], eax
mov eax, dword [ebp - 0xb0]
mov dword [0x61da88], eax
jmp 0x52684c
nop
add esp, 0x2b0
pop ebx
pop edi
pop ebp
ret