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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444d51
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x455670]
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 0x40a93d
cmp dword [0x456d94], ebx
je 0x40aea1
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 0x40a9e1
mov byte [ebp - 0x167], bl
xor eax, eax
jmp 0x40a980
mov cl, byte [ebp + eax - 0x168]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x40a980
lea eax, [ebp - 0x270]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40a9a0
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a9b1
sub eax, edx
push eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.0040124e
push 0xa
push str.:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.0040181b
jmp 0x40a9f3
push 0xb
push str.C:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.0040124e
mov eax, dword [ebp - 0x2a8]
mov esi, 0x10
cmp dword [ebp - 0x294], esi
jae 0x40aa0c
lea eax, [ebp - 0x2a8]
push eax
call fcn.00401924
add esp, 4
test eax, eax
jne 0x40aa35
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x40aa2d
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 0x40aa49
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 0x40aa64
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x28c]
call fcn.0040124e
push 1
push 0x44c7e0
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 0x40aaa7
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.0041b420
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ab01
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 0x40ab45
lea eax, [ebp - 0x28c]
push eax
call fcn.00401631
add esp, 4
test eax, eax
jne 0x40acdb
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 0x40ab71
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2d4]
call fcn.0040124e
push 4
push str.stp_
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 2
call fcn.0040124e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40aba2
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.0041b420
lea eax, [ebp - 0x2e0]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40abe0
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 0x40ac22
lea ecx, [ebp - 0x2d4]
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x40ac36
lea eax, [ebp - 0x2a8]
push ecx
push eax
call fcn.0040111d
mov eax, dword [ebp - 0x28c]
add esp, 8
cmp dword [ebp - 0x278], esi
jae 0x40ac54
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 0x40aca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40aca7
cmp dword [ebp - 0x278], 0x10
mov eax, dword [ebp - 0x28c]
jae 0x40ac96
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 0x40acc3
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.0041a986
add esp, 4
mov dword [ebp - 0x2c0], 0xf
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
jmp 0x40ad09
mov eax, dword [ebp - 0x28c]
cmp dword [ebp - 0x278], esi
jae 0x40acef
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 0x40ad53
cmp dword [ebp - 0x278], edi
jb 0x40ad25
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0041a986
add esp, 4
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
cmp dword [ebp - 0x294], edi
jb 0x40aea1
mov eax, dword [ebp - 0x2a8]
push eax
jmp 0x40ae99
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.0041b420
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
jmp 0x40adb0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40adb0
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 0x40ade6
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.0041b420
lea eax, [ebp - 0x60]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ae04
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 0x40ae26
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 0x44b4c4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x278], 0x10
jb 0x40ae73
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.0041a986
add esp, 4
cmp dword [ebp - 0x294], 0x10
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
jb 0x40aea1
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.0041a986
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.0041b411
mov esp, ebp
pop ebp
ret