Function at 0x4022b0
Capabilities:
Create directory
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4173cc]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4173cc]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x10], ebx
je 0x40230d
cmp dword [0x441a28], ebx
je 0x40275c
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea ecx, [esp + 0xd4]
mov dword [esp + 0x1f0], ebx
call fcn.00402780
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402340
sub eax, edx
push eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x54]
call fcn.004014a0
push 3
mov eax, 0x414658
lea ecx, [esp + 0x50]
call fcn.00401380
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp dword [esp + 0x60], esi
jae 0x40237e
lea eax, [esp + 0x4c]
push eax
call fcn.00403110
add esp, 4
test eax, eax
jne 0x4023a1
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x402399
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x4023af
lea edx, [esp + 0x4c]
mov eax, edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4023c4
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004014a0
push 1
mov eax, 0x4143ec
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f4], 1
call fcn.00401380
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4023f5
sub eax, edx
push eax
mov eax, edi
lea ecx, [esp + 0x24]
call fcn.00401380
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x40]
movzx ecx, word [esp + 0x42]
movzx edx, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push str._04u_02u_02u_02u
push ecx
call fcn.00404c19
lea eax, [esp + 0x9c]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402450
sub eax, edx
push eax
lea eax, [esp + 0x88]
lea ecx, [esp + 0x24]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [esp + 0x24]
call fcn.00401380
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x40248d
lea eax, [esp + 0x20]
push eax
call fcn.00403080
add esp, 4
test eax, eax
jne 0x4025be
mov eax, edi
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4024b3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.004014a0
mov byte [esp + 0x1f0], 2
movzx edx, word [esp + 0x40]
push edx
lea eax, [esp + 0x1c]
push str._02u
push eax
call fcn.00404c19
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4024f0
sub eax, edx
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x6c]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [esp + 0x6c]
call fcn.00401380
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x402525
lea ecx, [esp + 0x68]
cmp dword [esp + 0x60], esi
mov esi, dword [esp + 0x4c]
jae 0x402533
lea esi, [esp + 0x4c]
call fcn.00403300
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x402547
lea eax, [esp + 0x20]
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 0x402594
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402594
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x402583
lea eax, [esp + 0x20]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
mov edi, 0x10
cmp dword [esp + 0x7c], edi
jb 0x4025ac
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00404bff
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jmp 0x4025e6
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x4025cc
lea eax, [esp + 0x20]
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 0x402622
cmp dword [esp + 0x34], edi
jb 0x4025fe
mov edx, dword [esp + 0x20]
push edx
call fcn.00404bff
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x60], edi
jb 0x40275c
mov eax, dword [esp + 0x4c]
push eax
jmp 0x402754
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [esp + 0x48]
movzx edx, word [esp + 0x46]
movzx eax, word [esp + 0x44]
push ecx
movzx ecx, word [esp + 0x46]
push edx
movzx edx, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
push ecx
push edx
push eax
lea ecx, [esp + 0xac]
push str.__04u__02u__02u__02u:_02u:_02u_
push ecx
mov dword [esp + 0x34], ebx
call fcn.00404c19
lea eax, [esp + 0xb4]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402674
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0xa0]
push eax
push esi
call edi
cmp dword [ebp + 0x10], ebx
je 0x4026aa
push ebx
lea ecx, [esp + 0x18]
push ecx
push 6
push str._DTL_
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [esp + 0x98]
push str._0x_x_
push edx
call fcn.00404c19
lea eax, [esp + 0xa0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4026d0
push ebx
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0xa0]
push edx
push esi
call edi
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4026f2
mov edx, dword [esp + 0x1c]
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 0x414494
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x402739
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00404bff
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x60], esi
jb 0x40275c
mov edx, dword [esp + 0x4c]
push edx
call fcn.00404bff
add esp, 4
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret