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

Disassembly:
push 0xffffffffffffffff
push 0x4e7f84
mov eax, dword fs:[0]
push eax
mov eax, 0xfa21c
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xfa218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0xfa230]
mov dword fs:[0], eax
cmp byte [0x103a972], 0
je 0x43da65
cmp byte [0x53ed79], 0
jne 0x43dd9b
push 0x1ff
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call sub.MSVCR90.dll_memset
push 0xf9fff
lea ecx, [esp + 0x23d]
push 0
push ecx
mov byte [esp + 0x244], 0
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push 0x10da2e0
lea edx, [esp + 0x48]
push str._sLog
push edx
call esi
lea eax, [esp + 0x50]
push 0
push eax
call dword [sym.imp.MSVCR90.dll__access]
add esp, 0x2c
test eax, eax
je 0x43dacf
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCR90.dll__time64]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCR90.dll__localtime64]
mov ebx, dword [esp + 0xfa248]
add esp, 8
mov ebp, eax
cmp ebx, 1
jne 0x43db17
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
inc ecx
push ecx
add edx, 0x76c
push edx
push str.TCLOG_DEBUG__04d__02d.tcbak
lea eax, [esp + 0x238]
push eax
jmp 0x43dbbf
cmp ebx, 2
jne 0x43db51
mov ecx, dword [str.TC_BK.tcbak]
mov edx, dword [0x508bf8]
mov eax, dword [0x508bfc]
mov dword [esp + 0x22c], ecx
mov cl, byte [0x508c00]
mov dword [esp + 0x230], edx
mov dword [esp + 0x234], eax
mov byte [esp + 0x238], cl
jmp 0x43dbc4
cmp ebx, 4
jne 0x43db8b
mov edx, dword [str.TC_BK.tcbak]
mov eax, dword [0x508bf8]
mov ecx, dword [0x508bfc]
mov dword [esp + 0x22c], edx
mov dl, byte [0x508c00]
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], ecx
mov byte [esp + 0x238], dl
jmp 0x43dbc4
cmp ebx, 8
jne 0x43dd9b
lea eax, [esp + 0x18]
push eax
call fcn.00410ab0
lea ecx, [esp + 0x18]
call fcn.00409320
push eax
lea ecx, [esp + 0x1c]
call fcn.004092f0
push eax
push 0x508bb0
lea ecx, [esp + 0x238]
push ecx
call esi
add esp, 0x10
lea eax, [esp + 0x22c]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43dbd0
lea edi, [esp + 0x2c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43dbe0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x2c]
and ecx, 3
push 0
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR90.dll__access]
add esp, 8
test eax, eax
jne 0x43dc18
push 0x504ff8
lea eax, [esp + 0x30]
push eax
jmp 0x43dc22
push 0x504ff4
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x43dd9b
mov eax, dword [esp + 0xfa244]
lea edx, [esp + 0xfa248]
push edx
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.MSVCR90.dll_vsprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0xfa238], 0
cmp ebx, 2
jne 0x43dcfa
test byte [0x1043104], 8
je 0x43dcdd
push ecx
lea edx, [esp + 0x230]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0xfa23c], 1
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xfa240], 0
call fcn.0048ecd0
mov byte [esp + 0xfa240], bl
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x20]
push str._s_r_n
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x14
mov byte [esp + 0xfa238], 0
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x43dd46
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x18]
push str._s_r_n
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
jmp 0x43dd46
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
add eax, eax
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x38]
push str._08x__04d__02d__02d__02d:_02d:_02d__I_d__s_r_n
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x2c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp byte [0x103a972], 0
je 0x43dd86
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 2
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call esi
mov dword [esp + 0xfa238], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xfa230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfa218]
xor ecx, esp
call fcn.004e0148
add esp, 0xfa228
ret