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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444fae
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
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 - 0xcc], eax
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
push 0xb
push str.c:iNodeLog
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], ebx
call fcn.0040124e
mov eax, dword [ebp - 0xa8]
mov esi, 0x10
cmp dword [ebp - 0x94], esi
jae 0x40c630
lea eax, [ebp - 0xa8]
push eax
call fcn.00401924
add esp, 4
test eax, eax
jne 0x40c659
mov eax, dword [ebp - 0xa8]
cmp dword [ebp - 0x94], esi
jae 0x40c651
lea eax, [ebp - 0xa8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0xa8]
cmp dword [ebp - 0x94], esi
jae 0x40c66d
lea edx, [ebp - 0xa8]
mov eax, edx
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c680
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x7c]
call fcn.0040124e
push 1
push 0x44c7e0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040181b
mov eax, edi
lea edx, [eax + 1]
jmp 0x40c6b0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c6b0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.0040181b
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x88]
movzx eax, word [ebp - 0x86]
movzx ecx, word [ebp - 0x8a]
push edx
movzx edx, word [ebp - 0x8c]
push eax
push ecx
push edx
lea eax, [ebp - 0x20]
push str._04u_02u_02u_02u
push eax
call fcn.0041b420
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c707
sub eax, edx
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040181b
push 4
push str..log
lea ecx, [ebp - 0x7c]
call fcn.0040181b
mov eax, dword [ebp - 0x7c]
mov esi, 0x10
cmp dword [ebp - 0x68], esi
jae 0x40c73c
lea eax, [ebp - 0x7c]
push eax
call fcn.00401631
add esp, 4
test eax, eax
jne 0x40c890
mov eax, edi
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xc4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c768
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0xc4]
call fcn.0040124e
movzx edx, word [ebp - 0x88]
push edx
lea eax, [ebp - 0xd0]
push str._02u
push eax
mov byte [ebp - 4], 2
call fcn.0041b420
lea eax, [ebp - 0xd0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c7a7
sub eax, edx
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0040181b
push 4
push str..log
lea ecx, [ebp - 0xc4]
call fcn.0040181b
mov ecx, dword [ebp - 0xc4]
cmp dword [ebp - 0xb0], esi
jae 0x40c7e9
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xa8]
cmp dword [ebp - 0x94], esi
jae 0x40c7fd
lea eax, [ebp - 0xa8]
push ecx
push eax
call fcn.0040111d
mov eax, dword [ebp - 0x7c]
add esp, 8
cmp dword [ebp - 0x68], esi
jae 0x40c812
lea eax, [ebp - 0x7c]
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 0x40c85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c85c
cmp dword [ebp - 0x68], 0x10
mov eax, dword [ebp - 0x7c]
jae 0x40c84b
lea eax, [ebp - 0x7c]
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 - 0xb0], edi
jb 0x40c878
mov edx, dword [ebp - 0xc4]
push edx
call fcn.0041a986
add esp, 4
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xc4], bl
jmp 0x40c8b5
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], esi
jae 0x40c89b
lea eax, [ebp - 0x7c]
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 0x40c8f0
cmp dword [ebp - 0x68], edi
jb 0x40c8cb
mov eax, dword [ebp - 0x7c]
push eax
call fcn.0041a986
add esp, 4
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
cmp dword [ebp - 0x94], edi
jb 0x40ca13
mov ecx, dword [ebp - 0xa8]
push ecx
jmp 0x40ca0b
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx edx, word [ebp - 0x80]
movzx eax, word [ebp - 0x82]
movzx ecx, word [ebp - 0x84]
push edx
movzx edx, word [ebp - 0x86]
push eax
movzx eax, word [ebp - 0x8a]
push ecx
movzx ecx, word [ebp - 0x8c]
push edx
push eax
push ecx
lea edx, [ebp - 0x60]
push str.__04u__02u__02u__02u:_02u:_02u_
push edx
mov dword [ebp - 0xc8], ebx
call fcn.0041b420
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c945
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0xc8]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x60]
push edx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x60]
push str.__x_
push eax
call fcn.0041b420
lea eax, [ebp - 0x60]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40c982
push ebx
sub eax, ecx
lea ecx, [ebp - 0xc8]
push ecx
push eax
lea edx, [ebp - 0x60]
push edx
push esi
call edi
mov eax, dword [ebp - 0xcc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40c9a4
mov edx, dword [ebp - 0xcc]
push ebx
sub eax, ecx
lea ecx, [ebp - 0xc8]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0xc8]
push eax
push 2
push 0x44b4c4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x68], esi
jb 0x40c9ef
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0041a986
add esp, 4
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
cmp dword [ebp - 0x94], esi
jb 0x40ca13
mov edx, dword [ebp - 0xa8]
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