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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240c
call fcn.10040c40
mov eax, dword [0x10074bac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [0x102c6560], eax
push ebx
push esi
push edi
push 0x1ff
xor edi, edi
lea eax, [ebp - 0x203]
push edi
push eax
mov byte [ebp - 0x204], 0
call fcn.10040850
push 0x3ff
lea eax, [ebp - 0x603]
push edi
push eax
mov byte [ebp - 0x604], 0
call fcn.10040850
mov esi, 0x9ff
push esi
lea eax, [ebp - 0x2403]
push edi
push eax
mov byte [ebp - 0x2404], 0
call fcn.10040850
push esi
lea eax, [ebp - 0x1003]
push edi
push eax
mov byte [ebp - 0x1004], 0
call fcn.10040850
push esi
lea eax, [ebp - 0x1a03]
push edi
push eax
mov byte [ebp - 0x1a04], 0
call fcn.10040850
push 0x10142048
lea eax, [ebp - 0x204]
push str._sLog
push eax
call fcn.10040b98
add esp, 0x48
lea eax, [ebp - 0x204]
push edi
push eax
call fcn.10043bc5
pop ecx
pop ecx
test eax, eax
je 0x1003d235
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x240c]
push eax
call fcn.10040fd5
lea eax, [ebp - 0x240c]
push eax
call fcn.10040fae
mov ebx, eax
mov eax, dword [ebx + 0x10]
inc eax
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x604]
push str._04d__02d_AT.txt
push eax
call fcn.10040b98
lea eax, [ebp - 0x604]
add esp, 0x18
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003d279
lea edi, [ebp - 0x204]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003d289
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x204]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10043bc5
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x204]
jne 0x1003d2c2
push 0x1006c2c0
jmp 0x1003d2c7
push 0x1006c2bc
push eax
call fcn.100432b7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003d3d8
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x604]
push eax
call fcn.100435eb
mov eax, dword [0x1016e468]
lea ecx, [ebp - 0x1a04]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1003d105
lea ecx, [ebp - 0x1a04]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1003d105
lea ecx, [ebp - 0x1a04]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1003d105
lea ecx, [ebp - 0x1a04]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1003d105
add esp, 0x4c
lea ecx, [ebp - 0x1a04]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1003d105
lea eax, [ebp - 0x604]
push eax
push 0x10142448
lea eax, [ebp - 0x1004]
push eax
push dword [ebx]
lea eax, [ebp - 0x2404]
push dword [ebx + 4]
push dword [ebx + 8]
push dword [ebx + 0xc]
push 0x1006c298
push eax
call fcn.10040b98
lea eax, [ebp - 0x2404]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003d3b6
push esi
sub eax, ecx
push 1
push eax
lea eax, [ebp - 0x2404]
push eax
call fcn.10043171
push esi
call fcn.10042f93
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004083f
leave
ret