Function at 0x417c3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa]
mov dword [esp], eax
call fcn.00416e8a
mov ebx, eax
add ebx, 0x7ff
mov eax, ebx
test ebx, ebx
jns 0x417c69
lea eax, [ebx + 0x7ff]
mov ebx, eax
and ebx, 0xfffff800
mov dword [esp], ebx
call fcn.0040a4e0
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov dword [esp], eax
call fcn.00416e8a
mov edx, eax
mov eax, ebx
test ebx, ebx
jns 0x417c95
lea eax, [ebx + 0x7ff]
sar eax, 0xb
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041fa92
lea eax, [esi + 0xa]
mov dword [esp], eax
call fcn.00416e8a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x28], ecx
jge 0x417d0c
mov edi, dword [ebp - 0x18]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
cmp byte [edi], 0
jne 0x417cf8
mov eax, dword [ebp - 0x1c]
add eax, 0x7ff
and eax, 0xfffff800
mov dword [ebp - 0x1c], eax
jmp 0x417d04
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
add dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], ecx
jl 0x417cd8
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [esp], eax
call fcn.0040a4e0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x30], edi
jge 0x4180f2
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0
jne 0x417d6b
mov eax, dword [ebp - 0x1c]
add eax, 0x7ff
and eax, 0xfffff800
mov dword [ebp - 0x1c], eax
jmp 0x4180e6
mov dword [esp], 0x170
call fcn.0040a4e0
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
mov dword [eax], 0
mov eax, dword [edx]
add eax, 8
mov dword [esp + 8], 0xf1
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov edi, dword [ebp - 0x40]
mov ebx, dword [edi]
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp], eax
call fcn.00416e8a
mov dword [ebx + 0xfc], eax
mov ebx, dword [edi]
mov eax, dword [ebp - 0x20]
add eax, 0xa
mov dword [esp], eax
call fcn.00416e8a
mov dword [ebx + 0x100], eax
cdq
mov dword [ebx + 0x104], edx
mov eax, dword [edi]
mov word [eax + 0x108], 0
mov eax, dword [edi]
mov dword [eax + 0x10c], 0
mov eax, dword [edi]
mov dword [eax + 0x140], 0
mov eax, dword [edi]
mov dword [eax + 0x110], 0
mov eax, dword [edi]
mov dword [eax + 0x114], 0
mov eax, dword [edi]
mov dword [eax + 0x118], 0
mov eax, dword [edi]
mov dword [eax + 0x11c], 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xfc]
mov dword [eax + 0x128], ecx
mov dword [eax + 0x12c], 0
mov eax, dword [edi]
mov dword [eax + 0x130], 0x7ffffffd
mov eax, dword [edi]
mov dword [eax + 0x134], 0
mov eax, dword [edi]
mov dword [eax + 0x138], 0
mov eax, dword [edi]
mov dword [eax + 0x13c], 0
mov eax, dword [edi]
mov dword [eax + 0x120], 1
mov eax, dword [edi]
mov dword [eax + 0x144], 0
mov eax, dword [edi]
mov dword [eax + 0x148], 0
mov edi, dword [ebp - 0x20]
movzx esi, byte [edi]
sub esi, 0x21
movzx eax, byte [edi + 0x20]
sub esi, eax
lea edx, [eax + edi + 0x21]
mov dword [ebp - 0x10], edx
test al, 1
jne 0x417eb2
inc edx
mov dword [ebp - 0x10], edx
dec esi
cmp dword [0x46a11c], 0
je 0x417ec0
mov esi, 0
test esi, esi
jle 0x417f0a
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov dword [eax + 0x138], esi
mov dword [eax + 0x13c], esi
mov ebx, dword [ecx]
mov dword [esp], esi
call fcn.0040a4e0
mov dword [ebx + 0x134], eax
mov edi, dword [ebp - 0x40]
mov eax, dword [edi]
mov eax, dword [eax + 0x134]
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + 0x20], 0xcf
ja 0x417f44
mov edi, dword [ebp - 0x40]
mov eax, dword [edi]
add eax, 0x29
movzx edx, byte [ecx + 0x20]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, 0xd0
sub eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.cygwin1.dll_memset
jmp 0x417f56
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov byte [eax + 0xf8], 0
mov eax, dword [ecx]
mov byte [eax + 0x28], 0xcf
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x20], 0x1f
ja 0x417f68
cmp dword [0x46a05c], 0
je 0x417f7c
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
call fcn.0041bc33
mov edi, dword [ebp - 0x40]
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [edi]
mov eax, dword [eax + 0x134]
mov dword [esp], eax
call fcn.00417607
cmp eax, 0xffffffff
jne 0x417fbc
mov eax, dword [ebp - 0x20]
add eax, 0x21
mov dword [esp + 8], eax
mov dword [esp + 4], 0x417b50
mov dword [esp], 0xffffffff
call fcn.004486d2
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
cmp byte [eax + 0x28], 1
jne 0x41802b
cmp byte [eax + 0x29], 1
ja 0x41802b
cmp dword [eax + 0x10c], 0
je 0x417fe4
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
cmp dword [eax + 0x114], 0
je 0x418000
mov eax, dword [eax + 0x114]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov edi, dword [ebp - 0x40]
mov ebx, dword [edi]
cmp byte [ebx + 0x29], 0
jne 0x418014
mov dword [esp], 0x416ea6
jmp 0x418020
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
mov dword [esp], 0x417b7e
call sub.cygwin1.dll_strdup
mov dword [ebx + 0x10c], eax
mov edx, dword [0x44d084]
cld
mov ecx, 0xffffffff
mov al, 0
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x20]
add eax, 0x21
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x4180d9
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
cmp dword [eax + 0x10c], 0
je 0x418076
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
cmp dword [eax + 0x114], 0
je 0x418092
mov eax, dword [eax + 0x114]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov edi, dword [ebp - 0x40]
mov ebx, dword [edi]
mov eax, dword [0x44d084]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
mov dword [ebx + 0x10c], eax
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp], eax
call fcn.00416e8a
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
add eax, 0xa
mov dword [esp], eax
call fcn.00416e8a
cmp dword [ebp - 0x38], 0
sete dl
movzx edx, dl
dec edx
and eax, edx
mov dword [ebp - 0x3c], eax
add dword [ebp - 0x40], 4
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
add dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], ecx
jl 0x417d48
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], eax
jge 0x4181a7
mov edx, dword [ebp - 0x40]
mov ebx, dword [edx]
lea eax, [ebx + 0x28]
mov dword [esp], eax
call fcn.00416e30
mov esi, eax
test byte [ebx + 0x21], 4
je 0x418194
mov ebx, 0
cmp ebx, dword [ebp - 0x28]
jge 0x418194
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
add eax, 0x29
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + ebx*4]
add eax, 0x29
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x41818e
mov edx, dword [edi + ebx*4]
test byte [edx + 0x21], 4
jne 0x41818e
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov dword [edx + 0x144], eax
mov eax, dword [ecx]
or dword [eax + 0x120], 8
cmp dword [0x46a148], 0
jne 0x418194
mov dword [0x46a144], 1
mov dword [0x46a148], 1
jmp 0x418194
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x41812d
inc dword [ebp - 0x1c]
add dword [ebp - 0x40], 4
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edi
jl 0x41810b
cmp dword [ebp - 0x38], 0
je 0x4183ba
cmp dword [ebp - 0x3c], 0
je 0x4183ba
mov ebx, dword [ebp - 0x3c]
add ebx, 0x7ff
mov eax, ebx
test ebx, ebx
jns 0x4181d2
mov eax, dword [ebp - 0x3c]
add eax, 0xffe
mov ebx, eax
and ebx, 0xfffff800
mov dword [esp], ebx
call fcn.0040a4e0
mov dword [ebp - 0x34], eax
mov eax, ebx
test ebx, ebx
jns 0x4181f0
add eax, 0x7ff
sar eax, 0xb
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x38]
mov dword [esp], edx
call fcn.0041fa92
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x3c], 0
jle 0x4183aa
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jge 0x41824f
mov edi, dword [ebp - 0x14]
cmp byte [edi], 0xa
je 0x41824f
cmp byte [edi], 0
je 0x41824f
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jge 0x41824f
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0xa
je 0x41824f
cmp byte [eax], 0
jne 0x418234
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jge 0x418260
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edi
jge 0x418392
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
add eax, 0x28
mov dword [esp], eax
call fcn.00416e30
mov esi, eax
mov ebx, dword [ebp - 0x10]
add ebx, eax
mov eax, ebx
sub eax, dword [ebp - 0x34]
add eax, 2
cmp eax, dword [ebp - 0x3c]
jge 0x41837f
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
add eax, 0x29
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x41837f
mov edi, dword [ebp - 0x10]
cmp byte [esi + edi + 2], 0x20
jne 0x41837f
mov dword [esp + 4], 9
lea eax, [ebx + 2]
mov dword [esp], eax
call sub.cygwin1.dll_strchr
mov esi, eax
test eax, eax
je 0x41837f
inc esi
cmp byte [esi], 0
je 0x418345
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
cld
mov ecx, 0xffffffff
mov al, 0
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 3
mov dword [esp], ecx
call fcn.0040a4e0
mov dword [ebx + 0x110], eax
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x417b81
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x110]
mov dword [esp], eax
call fcn.00448be1
mov edi, dword [ebp - 0x40]
mov eax, dword [edi]
cmp dword [eax + 0x140], 0
jne 0x418392
cmp dword [eax + 0x10c], 0
je 0x41836a
mov eax, dword [eax + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
mov dword [esp], esi
call sub.cygwin1.dll_strdup
mov dword [ebx + 0x10c], eax
jmp 0x418392
inc dword [ebp - 0x1c]
add dword [ebp - 0x40], 4
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edx
jl 0x418279
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov eax, ecx
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jl 0x41821c
mov edi, dword [ebp - 0x34]
mov dword [esp], edi
call sub.cygwin1.dll_free
jmp 0x418453
cmp dword [ebp - 0x30], 0
jne 0x418453
cmp dword [0x479a18], 0
jne 0x418453
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x35
mov dword [esp + 4], 1
mov dword [esp], 0x417b90
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x32
mov dword [esp + 4], 1
mov dword [esp], 0x417bd0
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], 0x417c10
call sub.cygwin1.dll_fwrite
mov dword [0x479a18], 1
cmp dword [ebp - 0x18], 0
je 0x418464
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret