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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463521
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x4775a8]
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.00425fe0
add esp, 0xc
cmp eax, ebx
je 0x422180
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422150
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.00412db0
jmp 0x422192
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 0x4221ab
lea eax, [ebp - 0x1a0]
push eax
call fcn.004328e0
add esp, 4
test eax, eax
jne 0x4221d4
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x4221cc
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 0x4221e8
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 0x422200
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.00412db0
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.0043ce2a
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422270
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x184]
call fcn.00412db0
push 4
push str..log
lea ecx, [ebp - 0x184]
call fcn.00412db0
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x4222af
lea eax, [ebp - 0x184]
push eax
call fcn.00432840
add esp, 4
test eax, eax
jne 0x42240d
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.0043ce2a
lea eax, [ebp - 0x1d8]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422311
sub eax, edx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00412db0
push 4
push str..log
lea ecx, [ebp - 0x1cc]
call fcn.00412db0
mov ecx, dword [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], edi
jae 0x422353
lea ecx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x422367
lea eax, [ebp - 0x1a0]
push ecx
push eax
call fcn.00432bb0
mov eax, dword [ebp - 0x184]
add esp, 8
cmp dword [ebp - 0x170], edi
jae 0x422385
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 0x4223d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4223d8
cmp dword [ebp - 0x170], 0x10
mov eax, dword [ebp - 0x184]
jae 0x4223c7
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 0x4223f0
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], ebx
mov byte [ebp - 0x1cc], bl
mov edi, 0x10
jmp 0x422436
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x422421
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 0x422480
cmp dword [ebp - 0x170], edi
jb 0x422452
mov edx, dword [ebp - 0x184]
push edx
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], edi
jb 0x4225b5
mov eax, dword [ebp - 0x1a0]
push eax
jmp 0x4225ad
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.0043ce2a
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4224d8
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.0043ce2a
lea eax, [ebp - 0x60]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x422515
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 0x422537
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 0x468784
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x170], esi
jb 0x422588
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], esi
jb 0x4225b5
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.0043c161
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.0043bde4
mov esp, ebp
pop ebp
ret