Function at 0x41892f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x130], eax
jge 0x418b20
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + edx*4], 0
je 0x418b0b
mov eax, dword [ecx + edx*4]
cmp dword [eax + 0x10c], 0
je 0x4189ff
cmp dword [eax + 0x114], 0
jne 0x4189ff
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 0x418916
lea edx, [ebp - 0x128]
mov dword [esp], edx
call sub.cygwin1.dll_strcat
mov ecx, dword [ebp - 0x13c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + ecx*4]
mov eax, dword [eax + 0x10c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.cygwin1.dll_strcat
mov edx, dword [ebp - 0x13c]
mov ebx, dword [esi + edx*4]
lea ecx, [ebp - 0x128]
mov dword [esp], ecx
call sub.cygwin1.dll_strdup
mov dword [ebx + 0x114], eax
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x10c], 0
je 0x418a51
mov eax, dword [0x44d084]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x418a51
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4]
add eax, 0xa
mov dword [esp], eax
call fcn.00416e8a
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], esi
jmp 0x418b0b
mov ecx, dword [ebp - 0x13c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + ecx*4]
test byte [eax + 0x21], 2
je 0x418adb
mov ebx, dword [eax + 0x10c]
mov edi, 0x416ea6
mov ecx, 2
cld
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x418a9a
mov edi, 0x417b7e
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x418ac0
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [esp], eax
call fcn.004184be
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp + 0xc]
mov dword [eax + esi*4], 0
jmp 0x418b0b
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x13c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + ecx*4]
mov dword [esp], eax
call fcn.00418c62
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [ecx + edx*4]
mov dword [eax + 0x118], esi
mov eax, dword [ecx + edx*4]
mov dword [esi + 0xc], eax
mov dword [ecx + edx*4], 0
inc dword [ebp - 0x13c]
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x13c], ecx
jl 0x418968
cmp dword [ebp - 0x12c], 0
je 0x418c57
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x418c2a
cmp dword [ebx + 0x10c], 0
je 0x418b8e
mov eax, dword [ebx + 0x10c]
mov dword [ebp - 0x134], eax
mov esi, eax
mov edi, 0x416ea6
mov ecx, 2
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x418bb6
cmp dword [ebx + 0x10c], 0
je 0x418b8e
mov esi, dword [ebp - 0x134]
mov edi, 0x417b7e
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x418bb6
mov eax, dword [0x44d084]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x418bb6
test byte [ebx + 0x120], 1
je 0x418c57
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418b3b
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0xc]
test ebx, ebx
je 0x418c2a
mov eax, dword [0x44d084]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10c]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x418c24
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], 0x418918
call sub.cygwin1.dll_fwrite
mov ecx, dword [ebp - 0x12c]
mov dword [esp + 4], ecx
lea eax, [ebx + 0xa]
mov dword [esp], eax
call fcn.0040eaf7
jmp 0x418c57
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418bca
mov esi, dword [ebp - 0x130]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + esi*4]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x118], ecx
mov eax, dword [edx + esi*4]
mov dword [ecx + 0xc], eax
mov dword [edx + esi*4], 0
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret