Function at 0x41a930
Capabilities:
Create directory
Terminate process
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
call sub.cygwin1.dll_opendir
test eax, eax
je 0x41ac10
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ebx, eax
mov dword [esp + 0x1c], eax
call sub.cygwin1.dll___errno
mov dword [esp + 0x38], 0
mov dword [eax], 0
lea eax, [ebx + 1]
mov dword [esp + 0x34], eax
lea esi, [esi]
mov dword [esp], ebp
call sub.cygwin1.dll_readdir
test eax, eax
je 0x41aaf0
cmp byte [eax + 0x14], 0x2e
lea edi, [eax + 0x14]
jne 0x41a9b0
cmp byte [edi + 1], 0x2e
jne 0x41a9b0
cmp byte [edi + 2], 0
je 0x41a988
lea esi, [esi]
cmp byte [eax + 0x14], 0x2e
jne 0x41a9c0
cmp byte [edi + 1], 0
je 0x41a988
lea esi, [esi]
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
add esi, eax
lea eax, [esi + 2]
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sub.cygwin1.dll_malloc
mov ebx, eax
test eax, eax
je 0x41abbc
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov byte [ebx + eax], 0x2f
mov eax, dword [esp + 0x34]
mov dword [esp + 4], edi
lea edi, [esi + 1]
add eax, ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov byte [ebx + esi + 1], 0
mov esi, dword [esp + 0xc4]
test esi, esi
jne 0x41aa60
lea eax, [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll__lstat64
test eax, eax
jne 0x41aa60
mov eax, dword [esp + 0x50]
and eax, 0xf000
cmp eax, 0xa000
je 0x41ac70
lea eax, [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll__stat64
test eax, eax
jne 0x41aa88
mov eax, dword [esp + 0x50]
and eax, 0xf000
cmp eax, 0x4000
je 0x41ab80
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov eax, dword [esp + 0xc0]
lea ecx, [edx + edi]
mov eax, dword [eax]
add ecx, esi
cmp eax, ecx
jbe 0x41ab20
mov eax, dword [esp + 0x30]
add esi, edx
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.cygwin1.dll_memcpy
mov edx, dword [esp + 0x24]
add dword [esp + 0x38], 1
mov eax, dword [edx]
lea eax, [edi + eax + 1]
mov dword [edx], eax
mov dword [esp], ebx
call sub.cygwin1.dll_free
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov dword [esp], ebp
call sub.cygwin1.dll_readdir
test eax, eax
jne 0x41a998
call sub.cygwin1.dll___errno
mov edx, dword [eax]
test edx, edx
jne 0x41abe0
mov dword [esp], ebp
call sub.cygwin1.dll_closedir
mov eax, dword [esp + 0x38]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, esi
add eax, 0x2000
js 0x41acf7
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x20], eax
call sub.cygwin1.dll_realloc
mov edx, dword [esp + 0x20]
test eax, eax
je 0x41acde
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
add eax, edx
mov edx, dword [esp + 0xc0]
mov dword [edx], eax
mov esi, dword [ecx]
test esi, esi
je 0x41abb4
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
lea ecx, [edx + edi]
add ecx, esi
cmp eax, ecx
jbe 0x41aacd
jmp 0x41aaa6
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.0041a930
mov ecx, dword [esi]
add dword [esp + 0x38], eax
test ecx, ecx
jne 0x41aacd
mov dword [esp], ebx
call sub.cygwin1.dll_free
mov dword [esp], ebp
call sub.cygwin1.dll_closedir
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x432028]
test eax, eax
jg 0x41ac86
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov dword [ebx], 0
jmp 0x41aaff
mov edi, dword [0x432028]
mov dword [esp + 0x38], 0
test edi, edi
jle 0x41ab07
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], str.Cannot_open_directory__s:__s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [esp + 0x38]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x432028], 1
jg 0x41acc0
mov dword [esp], ebx
call sub.cygwin1.dll_free
jmp 0x41a988
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], str.readdir__s__error:__s__n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x41abed
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Warning_:__s_is_a_symbolic_link__ignoring_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x41ac79
mov dword [esp], esi
mov dword [esp + 0x3c], eax
call sub.cygwin1.dll_free
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
jmp 0x41ab49
mov dword [esp + 0xc], str.newListSize___0
mov dword [esp + 8], str.UTIL_prepareFileList
mov dword [esp + 4], 0x2ac
mov dword [esp], str.util.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
nop