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

Disassembly:
sub esp, 0x694
mov ecx, dword [esp + 0x69c]
push ebp
push esi
lea eax, [esp + 0x6a8]
push edi
push eax
lea edx, [esp + 0x4a4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov byte [esp + eax + 0x4a0], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push str.TempLog
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0xe]
and ecx, 0xffff
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x70]
push str.TempLogDebugInfo__04d_02d_02d__02d.log
push edx
call esi
mov eax, dword [esp + 0x32]
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x2e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2e]
push edx
mov edx, dword [esp + 0x30]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x50]
push str._04d__02d__02d__02d:_02d:_03d
push eax
call esi
lea ecx, [esp + 0x98]
push 0x4110e4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x40
mov ebp, eax
or ecx, 0xffffffff
lea edi, [esp + 0x20]
lea edx, [esp + 0xa0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4110e0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xa4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xa4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4110dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xa4]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x6b8]
add esp, 0x14
mov edx, dword [esi + 0x514]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xa0]
push ecx
push 0
push 0x180
push edx
call edi
mov eax, dword [esi + 0x514]
push 0
push 0
push 0x18b
push eax
call edi
mov ecx, dword [esi + 0x514]
dec eax
push 0
push eax
push 0x186
push ecx
call edi
pop edi
pop esi
pop ebp
add esp, 0x694
ret