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

Disassembly:
jmp 0x402520
push 0xffffffffffffffff
push 0x43436e
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f1c0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe8]
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
push 0xb
push str.c:iNodeLog
lea ecx, [esp + 0x54]
mov dword [esp + 0xe8], ebx
call fcn.0040108c
mov eax, dword [esp + 0x50]
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jae 0x4025a3
lea eax, [esp + 0x50]
push eax
call fcn.0040123f
add esp, 4
test eax, eax
jne 0x4025c6
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x4025be
lea eax, [esp + 0x50]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esp + 0x64], ebp
mov edx, dword [esp + 0x50]
jae 0x4025d4
lea edx, [esp + 0x50]
mov eax, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4025e5
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.0040108c
push 9
push str.DamSetup
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8], 1
call fcn.004011f4
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x1e]
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x94]
push str._04u_02u_02u_02u
push eax
call fcn.0040c979
lea eax, [esp + 0x9c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402655
sub eax, edx
push eax
lea ecx, [esp + 0x88]
push ecx
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 0x402690
lea eax, [esp + 0x34]
push eax
call fcn.00401140
add esp, 4
test eax, eax
jne 0x4027cd
push 5
push str.setup
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.0040108c
movzx edx, word [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push str._02u
push eax
mov byte [esp + 0xec], 2
call fcn.0040c979
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4026f0
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
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 0x40272b
lea ecx, [esp + 0x6c]
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x402739
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 0x402751
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 0x40279d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279d
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x40278c
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 0x4027b3
mov edx, dword [esp + 0x6c]
push edx
call fcn.0040c526
add esp, 4
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov edi, 0xf
jmp 0x4027f0
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x4027db
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
jne 0x402828
cmp dword [esp + 0x48], ebp
jb 0x402808
mov eax, dword [esp + 0x34]
push eax
call fcn.0040c526
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40295b
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x402953
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x22]
movzx ecx, word [esp + 0x20]
push edx
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x22]
push ecx
movzx ecx, word [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0xac]
push str.__04u__02u__02u__02u:_02u:_02u_
push edx
mov dword [esp + 0x34], ebx
call fcn.0040c979
lea eax, [esp + 0xb4]
add esp, 0x20
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402880
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
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x98]
push str.__x_
push eax
call fcn.0040c979
lea eax, [esp + 0xa0]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4028d0
push ebx
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0xa0]
push edx
push esi
call edi
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4028f4
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 0x402938
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040c526
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40295b
mov edx, dword [esp + 0x50]
push edx
call fcn.0040c526
add esp, 4
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0040c96a
add esp, 0xd0
ret