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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x529c
call fcn.0040a450
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
push edi
mov byte [ebp - 0x210], 0
push 0x1ff
push 0
lea eax, [ebp - 0x20f]
push eax
call fcn.004064d0
add esp, 0xc
mov byte [ebp - 0x5270], 0
push 0x484f
push 0
lea ecx, [ebp - 0x526f]
push ecx
call fcn.004064d0
add esp, 0xc
push 0x413e78
push str._sLog
lea edx, [ebp - 0x210]
push edx
call fcn.0040274f
add esp, 0xc
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0040edf9
add esp, 8
test eax, eax
je 0x401130
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 8]
push edx
call fcn.00401080
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.00401060
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 8], 1
jne 0x401187
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x10]
add edx, 1
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
push ecx
push str.TCLOG__04d__02d.txt
lea edx, [ebp - 0x5270]
push edx
call fcn.0040274f
add esp, 0x10
jmp 0x4011c4
cmp dword [ebp + 8], 2
jne 0x4011bf
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str.TC_BK__04d__02d.tcbak
lea ecx, [ebp - 0x5270]
push ecx
call fcn.0040274f
add esp, 0x10
jmp 0x4011c4
jmp 0x4013f8
lea edx, [ebp - 0x5270]
mov dword [ebp - 0x5274], edx
mov eax, dword [ebp - 0x5274]
mov dword [ebp - 0x5278], eax
mov ecx, dword [ebp - 0x5274]
mov dl, byte [ecx]
mov byte [ebp - 0x5279], dl
add dword [ebp - 0x5274], 1
cmp byte [ebp - 0x5279], 0
jne 0x4011dc
mov eax, dword [ebp - 0x5274]
sub eax, dword [ebp - 0x5278]
mov ecx, dword [ebp - 0x5278]
mov dword [ebp - 0x5280], ecx
mov dword [ebp - 0x5284], eax
lea edx, [ebp - 0x210]
add edx, 0xffffffff
mov dword [ebp - 0x5288], edx
mov eax, dword [ebp - 0x5288]
mov cl, byte [eax + 1]
mov byte [ebp - 0x5289], cl
add dword [ebp - 0x5288], 1
cmp byte [ebp - 0x5289], 0
jne 0x401227
mov edi, dword [ebp - 0x5288]
mov esi, dword [ebp - 0x5280]
mov edx, dword [ebp - 0x5284]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x218], 0
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0040edf9
add esp, 8
test eax, eax
jne 0x4012a1
push 0x41045c
lea ecx, [ebp - 0x210]
push ecx
call fcn.00402a92
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x4012bb
push 0x410460
lea edx, [ebp - 0x210]
push edx
call fcn.00402a92
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4012c9
jmp 0x4013f8
mov byte [ebp - 0xa20], 0
push 0x7ff
push 0
lea eax, [ebp - 0xa1f]
push eax
call fcn.004064d0
add esp, 0xc
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x5270]
push ecx
call fcn.0040284a
add esp, 0xc
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x5270]
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x413c70]
push eax
push str.PID__d__08d__04d__02d__02d__02d:_02d:_02d___s_r_n
lea ecx, [ebp - 0xa20]
push ecx
call fcn.0040274f
add esp, 0x2c
lea edx, [ebp - 0xa20]
mov dword [ebp - 0x5290], edx
mov eax, dword [ebp - 0x5290]
add eax, 1
mov dword [ebp - 0x5294], eax
mov ecx, dword [ebp - 0x5290]
mov dl, byte [ecx]
mov byte [ebp - 0x5295], dl
add dword [ebp - 0x5290], 1
cmp byte [ebp - 0x5295], 0
jne 0x40139a
mov eax, dword [ebp - 0x5290]
sub eax, dword [ebp - 0x5294]
mov dword [ebp - 0x529c], eax
mov ecx, dword [ebp - 0x218]
push ecx
push 1
mov edx, dword [ebp - 0x529c]
push edx
lea eax, [ebp - 0xa20]
push eax
call fcn.00402c0b
add esp, 0x10
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.00403013
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00402740
mov esp, ebp
pop ebp
ret