Function at 0x401780
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
push 0xb
push str.c:iNodeLog
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004014a0
mov eax, dword [ebp - 0xac]
mov edi, 0x10
cmp dword [ebp - 0x98], edi
jae 0x4017fe
lea eax, [ebp - 0xac]
push eax
call fcn.00403110
add esp, 4
test eax, eax
jne 0x401827
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], edi
jae 0x40181f
lea eax, [ebp - 0xac]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0xac]
cmp dword [ebp - 0x98], edi
jae 0x40183b
lea edx, [ebp - 0xac]
mov eax, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401850
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x80]
call fcn.004014a0
push 0xc
mov eax, 0x414428
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401380
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x8c]
movzx eax, word [ebp - 0x8a]
movzx ecx, word [ebp - 0x8e]
push edx
movzx edx, word [ebp - 0x90]
push eax
push ecx
push edx
lea eax, [ebp - 0x24]
push str._04u_02u_02u_02u
push eax
call fcn.00404c19
lea eax, [ebp - 0x24]
add esp, 0x18
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018c0
sub eax, edx
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x80]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [ebp - 0x80]
call fcn.00401380
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x4018ef
lea eax, [ebp - 0x80]
push eax
call fcn.00403080
add esp, 4
test eax, eax
jne 0x401a35
push 9
push str.iNodeDown
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
call fcn.004014a0
mov byte [ebp - 4], 2
movzx ecx, word [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xd4]
push str._02u
push edx
call fcn.00404c19
lea eax, [ebp - 0xd4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401951
sub eax, edx
push eax
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xc8]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [ebp - 0xc8]
call fcn.00401380
mov ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0xb4], edi
jae 0x401992
lea ecx, [ebp - 0xc8]
mov esi, dword [ebp - 0xac]
cmp dword [ebp - 0x98], edi
jae 0x4019a6
lea esi, [ebp - 0xac]
call fcn.00403300
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x4019b6
lea eax, [ebp - 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401a00
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
jae 0x4019ef
lea eax, [ebp - 0x80]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
cmp dword [ebp - 0xb4], 0x10
jb 0x401a18
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00404bff
add esp, 4
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov edi, 0x10
jmp 0x401a55
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x401a40
lea eax, [ebp - 0x80]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a76
cmp dword [ebp - 0x6c], edi
jb 0x401a6b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x98], edi
jmp 0x401b83
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [ebp - 0x84]
movzx ecx, word [ebp - 0x86]
movzx edx, word [ebp - 0x88]
push eax
movzx eax, word [ebp - 0x8a]
push ecx
movzx ecx, word [ebp - 0x8e]
push edx
movzx edx, word [ebp - 0x90]
push eax
push ecx
push edx
lea eax, [ebp - 0x64]
push str.__04u__02u__02u__02u:_02u:_02u_
push eax
mov dword [ebp - 0xcc], ebx
call fcn.00404c19
lea eax, [ebp - 0x64]
add esp, 0x20
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ad0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0xcc]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x64]
push edx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x64]
push str.__x_
push eax
call fcn.00404c19
lea eax, [ebp - 0x64]
add esp, 0xc
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401b10
push ebx
sub eax, ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
lea edx, [ebp - 0x64]
push edx
push esi
call edi
mov eax, dword [ebp - 0xd0]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401b32
mov edx, dword [ebp - 0xd0]
push ebx
sub eax, ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0xcc]
push eax
push 2
push 0x414494
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x6c], esi
jb 0x401b7d
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x98], esi
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], 0xf
jb 0x401ba1
mov edx, dword [ebp - 0xac]
push edx
call fcn.00404bff
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret