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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460961
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x4735a8]
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 + 8]
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push str.setup
mov dword [ebp - 4], ebx
call fcn.00424130
add esp, 0xc
cmp eax, ebx
je 0x4203d0
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4203a0
sub eax, edx
push eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x1a0]
call fcn.00407c70
push 0xa
push str.:iNodeLog
lea ecx, [ebp - 0x1a0]
call fcn.00412850
jmp 0x4203e2
push 0xb
push str.C:iNodeLog
lea ecx, [ebp - 0x1a0]
call fcn.00407c70
mov eax, dword [ebp - 0x1a0]
mov edi, 0x10
cmp dword [ebp - 0x18c], edi
jae 0x4203fb
lea eax, [ebp - 0x1a0]
push eax
call fcn.004301d0
add esp, 4
test eax, eax
jne 0x420424
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x42041c
lea eax, [ebp - 0x1a0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x420438
lea edx, [ebp - 0x1a0]
mov eax, edx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420450
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x184]
call fcn.00407c70
push 6
push str._setup
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00412850
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1ac]
movzx edx, word [ebp - 0x1aa]
movzx eax, word [ebp - 0x1ae]
push ecx
movzx ecx, word [ebp - 0x1b0]
push edx
push eax
push ecx
lea edx, [ebp - 0x20]
push str._04u_02u_02u_02u
push edx
call fcn.0043a71a
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4204c0
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x184]
call fcn.00412850
push 4
push str..log
lea ecx, [ebp - 0x184]
call fcn.00412850
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x4204ff
lea eax, [ebp - 0x184]
push eax
call fcn.00430130
add esp, 4
test eax, eax
jne 0x42065d
push 5
push str.setup
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], ebx
mov byte [ebp - 0x1cc], bl
call fcn.00407c70
movzx ecx, word [ebp - 0x1ac]
push ecx
lea edx, [ebp - 0x1d8]
push str._02u
push edx
mov byte [ebp - 4], 2
call fcn.0043a71a
lea eax, [ebp - 0x1d8]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420561
sub eax, edx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00412850
push 4
push str..log
lea ecx, [ebp - 0x1cc]
call fcn.00412850
mov ecx, dword [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], edi
jae 0x4205a3
lea ecx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x4205b7
lea eax, [ebp - 0x1a0]
push ecx
push eax
call fcn.004304a0
mov eax, dword [ebp - 0x184]
add esp, 8
cmp dword [ebp - 0x170], edi
jae 0x4205d5
lea eax, [ebp - 0x184]
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 0x420628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420628
cmp dword [ebp - 0x170], 0x10
mov eax, dword [ebp - 0x184]
jae 0x420617
lea eax, [ebp - 0x184]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
cmp dword [ebp - 0x1b8], 0x10
jb 0x420640
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.00439a51
add esp, 4
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], ebx
mov byte [ebp - 0x1cc], bl
mov edi, 0x10
jmp 0x420686
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x420671
lea eax, [ebp - 0x184]
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 0x4206d0
cmp dword [ebp - 0x170], edi
jb 0x4206a2
mov edx, dword [ebp - 0x184]
push edx
call fcn.00439a51
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], edi
jb 0x420805
mov eax, dword [ebp - 0x1a0]
push eax
jmp 0x4207fd
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [ebp - 0x1a4]
movzx edx, word [ebp - 0x1a6]
movzx eax, word [ebp - 0x1a8]
push ecx
movzx ecx, word [ebp - 0x1aa]
push edx
movzx edx, word [ebp - 0x1ae]
push eax
movzx eax, word [ebp - 0x1b0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x60]
push str.__04u__02u__02u__02u:_02u:_02u_
push ecx
mov dword [ebp - 0x1d0], ebx
call fcn.0043a71a
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420728
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
lea edx, [ebp - 0x1d0]
push edx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0x60]
push str.__x_
push ecx
call fcn.0043a71a
lea eax, [ebp - 0x60]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420765
push ebx
lea edx, [ebp - 0x1d0]
push edx
sub eax, ecx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
mov eax, dword [ebp - 0x1d4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420787
mov edx, dword [ebp - 0x1d4]
push ebx
sub eax, ecx
lea ecx, [ebp - 0x1d0]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 2
push 0x4655f8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x170], esi
jb 0x4207d8
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.00439a51
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], esi
jb 0x420805
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.00439a51
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.004396d4
mov esp, ebp
pop ebp
ret