Function at 0x40a680
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2dc], eax
cmp dword [ebp + 0x10], ebx
je 0x40a6cd
cmp dword [0x455d94], ebx
je 0x40ac31
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], ebx
mov byte [ebp - 0x2a8], bl
push 0x105
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x40a771
mov byte [ebp - 0x167], bl
xor eax, eax
jmp 0x40a710
mov cl, byte [ebp + eax - 0x168]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x40a710
lea eax, [ebp - 0x270]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40a730
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a741
sub eax, edx
push eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00401253
push 0xa
push str.:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.0040181b
jmp 0x40a783
push 0xb
push str.C:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.00401253
mov eax, dword [ebp - 0x2a8]
mov esi, 0x10
cmp dword [ebp - 0x294], esi
jae 0x40a79c
lea eax, [ebp - 0x2a8]
push eax
call fcn.00401924
add esp, 4
test eax, eax
jne 0x40a7c5
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x40a7bd
lea eax, [ebp - 0x2a8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x40a7d9
lea ecx, [ebp - 0x2a8]
mov eax, ecx
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40a7f4
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x28c]
call fcn.00401253
push 1
push 0x44b708
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
call fcn.0040181b
push 4
push str.stp_
lea ecx, [ebp - 0x28c]
call fcn.0040181b
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40a837
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x28c]
call fcn.0040181b
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x2b4]
movzx edx, word [ebp - 0x2b2]
movzx eax, word [ebp - 0x2b6]
push ecx
movzx ecx, word [ebp - 0x2b8]
push edx
push eax
push ecx
lea edx, [ebp - 0x20]
push str._04u_02u_02u_02u
push edx
call fcn.0041b190
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a891
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040181b
push 4
push str..log
lea ecx, [ebp - 0x28c]
call fcn.0040181b
mov eax, dword [ebp - 0x28c]
mov esi, 0x10
cmp dword [ebp - 0x278], esi
jae 0x40a8d5
lea eax, [ebp - 0x28c]
push eax
call fcn.00401636
add esp, 4
test eax, eax
jne 0x40aa6b
mov eax, edi
mov dword [ebp - 0x2c0], 0xf
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a901
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2d4]
call fcn.00401253
push 4
push str.stp_
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 2
call fcn.00401253
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a932
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2d4]
call fcn.0040181b
movzx ecx, word [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x2e0]
push str._02u
push edx
call fcn.0041b190
lea eax, [ebp - 0x2e0]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a970
sub eax, edx
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0040181b
push 4
push str..log
lea ecx, [ebp - 0x2d4]
call fcn.0040181b
mov ecx, dword [ebp - 0x2d4]
cmp dword [ebp - 0x2c0], esi
jae 0x40a9b2
lea ecx, [ebp - 0x2d4]
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x40a9c6
lea eax, [ebp - 0x2a8]
push ecx
push eax
call fcn.00401122
mov eax, dword [ebp - 0x28c]
add esp, 8
cmp dword [ebp - 0x278], esi
jae 0x40a9e4
lea eax, [ebp - 0x28c]
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 0x40aa37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40aa37
cmp dword [ebp - 0x278], 0x10
mov eax, dword [ebp - 0x28c]
jae 0x40aa26
lea eax, [ebp - 0x28c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
mov edi, 0x10
cmp dword [ebp - 0x2c0], edi
jb 0x40aa53
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.0041a6fe
add esp, 4
mov dword [ebp - 0x2c0], 0xf
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
jmp 0x40aa99
mov eax, dword [ebp - 0x28c]
cmp dword [ebp - 0x278], esi
jae 0x40aa7f
lea eax, [ebp - 0x28c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov edi, 0x10
cmp esi, 0xffffffff
jne 0x40aae3
cmp dword [ebp - 0x278], edi
jb 0x40aab5
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0041a6fe
add esp, 4
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
cmp dword [ebp - 0x294], edi
jb 0x40ac31
mov eax, dword [ebp - 0x2a8]
push eax
jmp 0x40ac29
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [ebp - 0x2ac]
movzx edx, word [ebp - 0x2ae]
movzx eax, word [ebp - 0x2b0]
push ecx
movzx ecx, word [ebp - 0x2b2]
push edx
movzx edx, word [ebp - 0x2b6]
push eax
movzx eax, word [ebp - 0x2b8]
push ecx
push edx
push eax
lea ecx, [ebp - 0x60]
push str.__04u__02u__02u__02u:_02u:_02u_
push ecx
mov dword [ebp - 0x2d8], ebx
call fcn.0041b190
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
jmp 0x40ab40
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ab40
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
lea edx, [ebp - 0x2d8]
push edx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
cmp dword [ebp + 0x10], ebx
je 0x40ab76
push ebx
lea ecx, [ebp - 0x2d8]
push ecx
push 6
push str._DTL_
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [ebp - 0x60]
push str._0x_x_
push edx
call fcn.0041b190
lea eax, [ebp - 0x60]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ab94
push ebx
lea ecx, [ebp - 0x2d8]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x60]
push edx
push esi
call edi
mov eax, dword [ebp - 0x2dc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40abb6
mov edx, dword [ebp - 0x2dc]
push ebx
sub eax, ecx
lea ecx, [ebp - 0x2d8]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x2d8]
push eax
push 2
push 0x44a4c4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x278], 0x10
jb 0x40ac03
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.0041a6fe
add esp, 4
cmp dword [ebp - 0x294], 0x10
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
jb 0x40ac31
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.0041a6fe
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 - 0x10]
xor ecx, ebp
call fcn.0041b181
mov esp, ebp
pop ebp
ret