Function at 0x4d9160
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f964c
mov eax, dword fs:[0]
push eax
sub esp, 0xa10
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0xa24]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x103a972], bl
jne 0x4d939d
push 0x1ff
lea eax, [esp + 0x25]
push ebx
push eax
mov byte [esp + 0x2c], bl
call sub.MSVCR90.dll_memset
push 0x3ff
lea ecx, [esp + 0x231]
push ebx
push ecx
mov byte [esp + 0x238], bl
call sub.MSVCR90.dll_memset
push 0x3ff
lea edx, [esp + 0x63d]
push ebx
push edx
mov byte [esp + 0x644], bl
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0x10da2e0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0xa2c], ebx
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea ecx, [esp + 0x24]
push str._sLog
push ecx
call esi
lea edx, [esp + 0x2c]
push ebx
push edx
call dword [sym.imp.MSVCR90.dll__access]
add esp, 0x14
test eax, eax
je 0x4d9240
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll__time64]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR90.dll__localtime64]
mov ebp, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
inc eax
push eax
add ecx, 0x76c
push ecx
lea edx, [esp + 0x230]
push str._04d__02d_AT.txt
push edx
call esi
lea eax, [esp + 0x238]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4d9282
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4d9292
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x20]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR90.dll__access]
add esp, 8
test eax, eax
jne 0x4d92c7
push 0x504ff8
lea ecx, [esp + 0x24]
push ecx
jmp 0x4d92d1
push 0x504ff4
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4d9388
mov ecx, dword [esp + 0xa38]
lea eax, [esp + 0xa3c]
push eax
push ecx
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.MSVCR90.dll_vsprintf]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x22c]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
lea edx, [esp + 0x640]
push 0x510df0
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x648]
add esp, 0x28
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d9340
push esi
sub eax, edx
push 1
push eax
lea eax, [esp + 0x62c]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp byte [0x103a972], bl
je 0x4d9388
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 2
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call esi
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0c]
xor ecx, esp
call fcn.004e0148
add esp, 0xa1c
ret