Function at 0x403fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], str._n_Directories_n
call sub.msvcrt.dll_puts
mov dword [ebp - 0x14], 0
mov eax, dword [0x42a1f0]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [0x42a1f4]
lea eax, [edx + eax*4]
cmp edx, eax
mov dword [ebp - 0x1c], eax
jae 0x4041a6
jmp 0x404020
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
test ebx, ebx
je 0x404196
mov edi, dword [0x423960]
cmp ebx, edi
je 0x404196
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x404290
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4042ed
mov dword [ebp - 0x20], 0
mov edx, eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x24], 0
lea esi, [edx + eax*4]
cmp edx, esi
jae 0x40408f
nop
lea esi, [esi]
mov eax, dword [edx]
test eax, eax
je 0x404088
cmp eax, edi
je 0x404088
cmp word [eax + 6], 0
je 0x404281
inc dword [ebp - 0x24]
add edx, 4
cmp edx, esi
jb 0x404070
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str.__s__key__s__mtime__d_:
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4042d5
mov dword [esp], 0x4250f7
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], str._files_
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
mov dword [esp + 4], edi
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 8
mov dword [esp + 8], eax
call sub.msvcrt.dll_fwrite
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x4042bd
mov dword [esp], 0x425103
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 2
mov dword [esp + 8], ecx
mov edx, 1
mov dword [esp + 4], edx
add eax, 0x20
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], str._impossibilities
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 0x10
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x4042b1
mov dword [esp], 0x4250cb
call sub.msvcrt.dll_puts
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], edx
add dword [ebp - 0x14], eax
add dword [ebp - 0x18], 4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], edx
jb 0x404020
mov dword [esp], 0x425117
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 3
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40434f
mov dword [esp], 0x4250f7
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 2
mov dword [esp + 8], edi
mov esi, 1
mov dword [esp + 4], esi
add eax, 0x20
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], str._files_
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 1
mov dword [esp + 4], ecx
mov ebx, 8
mov dword [esp + 8], ebx
add eax, 0x20
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x40431f
mov dword [esp], 0x425103
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], str._impossibilities_in__lu_directories._n
mov eax, dword [0x42a1fc]
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x20]
add edx, 4
jmp 0x40408b
mov eax, dword [ebx]
mov dword [esp], str.__s:_could_not_be_statd._n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
add dword [ebp - 0x18], 4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], edx
jmp 0x4041a0
mov dword [esp], str._so_far.
jmp 0x404185
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x425167
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x404146
mov edx, dword [ebp - 0x20]
mov dword [esp], 0x425167
mov dword [esp + 4], edx
call sub.msvcrt.dll_printf
jmp 0x4040e7
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str.__s__key__s__mtime__d_:_could_not_be_opened._n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
add dword [ebp - 0x18], 4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], edx
jmp 0x4041a0
mov edx, dword [ebp - 0x14]
mov dword [esp], 0x425167
mov dword [esp + 4], edx
call sub.msvcrt.dll_printf
mov dword [esp], str._impossibilities_in__lu_directories._n
mov eax, dword [0x42a1fc]
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp], 0x425167
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x404205