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

Disassembly:
jmp 0x406e80
push 0xffffffffffffffff
push 0x4346c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f1c0]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f4]
mov esi, dword [esp + 0x1f0]
xor ebx, ebx
cmp dword [esp + 0x1f8], ebx
mov dword [esp + 0x2c], eax
je 0x406ee4
cmp dword [0x4407f0], ebx
je 0x407357
mov edi, 0xf
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [0x437f28]
mov edx, dword [0x437f24]
mov ecx, dword [str.c:iNodeLog]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd4]
mov dword [esp + 0xd8], edx
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0xd4], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406f30
sub eax, edx
push eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x54]
call fcn.0040108c
mov eax, dword [esp + 0x50]
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jae 0x406f60
lea eax, [esp + 0x50]
push eax
call fcn.0040123f
add esp, 4
test eax, eax
jne 0x406f83
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x406f7b
lea eax, [esp + 0x50]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esp + 0x64], ebp
mov ecx, dword [esp + 0x50]
jae 0x406f91
lea ecx, [esp + 0x50]
mov eax, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x406fa2
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0040108c
push 1
push 0x438e28
lea ecx, [esp + 0x38]
mov byte [esp + 0x1f0], 1
call fcn.004011f4
push 4
push str.stp_
lea ecx, [esp + 0x38]
call fcn.004011f4
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x406fe5
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.004011f4
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1c]
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push str._04u_02u_02u_02u
push ecx
call fcn.0040c979
lea eax, [esp + 0x9c]
add esp, 0x18
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407040
sub eax, edx
push eax
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x38]
call fcn.004011f4
push 4
push str..log
lea ecx, [esp + 0x38]
call fcn.004011f4
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x40707b
lea eax, [esp + 0x34]
push eax
call fcn.00401140
add esp, 4
test eax, eax
jne 0x4071e8
mov eax, esi
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4070a4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x70]
call fcn.0040108c
push 4
push str.stp_
lea ecx, [esp + 0x70]
mov byte [esp + 0x1f0], 2
call fcn.0040108c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4070d7
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x70]
call fcn.004011f4
movzx eax, word [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push str._02u
push ecx
call fcn.0040c979
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407110
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x70]
call fcn.004011f4
push 4
push str..log
lea ecx, [esp + 0x70]
call fcn.004011f4
cmp dword [esp + 0x80], ebp
mov ecx, dword [esp + 0x6c]
jae 0x40714b
lea ecx, [esp + 0x6c]
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x407159
lea eax, [esp + 0x50]
push ecx
push eax
call fcn.0040104b
mov eax, dword [esp + 0x3c]
add esp, 8
cmp dword [esp + 0x48], ebp
jae 0x407171
lea eax, [esp + 0x34]
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 0x4071bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4071bd
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x4071ac
lea eax, [esp + 0x34]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
cmp dword [esp + 0x80], ebp
jb 0x4071d3
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040c526
add esp, 4
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jmp 0x40720b
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x4071f6
lea eax, [esp + 0x34]
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
je 0x407321
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x22]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0xac]
push str.__04u__02u__02u__02u:_02u:_02u_
push eax
mov dword [esp + 0x34], ebx
call fcn.0040c979
lea eax, [esp + 0xb4]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407266
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0xa0]
push edx
push esi
call edi
cmp dword [esp + 0x1f8], ebx
je 0x4072a2
push ebx
lea eax, [esp + 0x18]
push eax
push 6
push str._DTL_
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [esp + 0x98]
push str._0x_x_
push ecx
call fcn.0040c979
lea eax, [esp + 0xa0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4072c8
sub eax, edx
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0xa0]
push eax
push esi
call edi
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4072f0
mov edx, dword [esp + 0x2c]
push ebx
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 2
push 0x437eb4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x48], ebp
jb 0x407334
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040c526
add esp, 4
cmp dword [esp + 0x64], ebp
mov byte [esp + 0x34], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0xf
jb 0x407357
mov edx, dword [esp + 0x50]
push edx
call fcn.0040c526
add esp, 4
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0040c96a
add esp, 0x1d8
ret