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

Disassembly:
sub esp, 0x234
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x24]
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4119e2
push 0xffffffffffffffff
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4119db
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x4119f0
cmp eax, 0x80
jne 0x4119e8
inc word [esi + 8]
jmp 0x4119f0
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
lea ecx, [ebx + 0x18]
call fcn.00416c50
test eax, eax
je 0x411a27
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x411cba
mov eax, dword [esi]
mov dword [esi + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
add esp, 0x234
ret 4
push ebp
push 0
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ebp, eax
mov eax, dword [ebx + 0x34]
add esp, 8
cmp eax, 0xffffffff
jne 0x411c23
mov edi, 0x41ec00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.log
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 eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x18]
not ecx
dec ecx
test eax, eax
mov esi, ecx
jne 0x411acc
mov eax, 0x41eae8
lea edi, [esp + esi + 0x40]
push eax
push 0x41e7a0
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.MSVCRT.dll_strftime]
not ecx
dec ecx
add esi, ecx
dec eax
cmp eax, 5
ja case.0x411afb.3
jmp dword [eax*4 + 0x411cc8]
mov ecx, 0x104
push ebp
sub ecx, esi
push str._session__Hh_M__d__m__Y.log
lea edx, [esp + esi + 0x48]
push ecx
push edx
jmp 0x411b5c
push ebp
push str.__d__m__Y.log
jmp 0x411b4f
mov edx, 0x104
push ebp
sub edx, esi
push str._Week__W_of_year__Y.log
lea eax, [esp + esi + 0x48]
push edx
push eax
jmp 0x411b5c
mov ecx, 0x104
push ebp
sub ecx, esi
push str.__B__Y.log
lea edx, [esp + esi + 0x48]
push ecx
push edx
jmp 0x411b5c
push ebp
push str.__Y.log
mov eax, 0x104
lea ecx, [esp + esi + 0x48]
sub eax, esi
push eax
push ecx
call edi
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x54]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x34], eax
jne 0x411ba5
lea eax, [esp + 0x40]
push eax
push 0x2000
push 0
push str.FF000000Internal_error:_Cannot_create_log_file_:__s
push ebx
call fcn.00411e40
add esp, 0x14
jmp case.0x411c48.3
mov ecx, dword [esp + 0x10]
push 2
push 0
push 0
push eax
mov dword [ebx + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x248]
test eax, eax
je 0x411c07
push ebp
push str._r_n_r_n__________________________Session_opened_on__a__d__b__Y___H:_M:_S____________________________r_n_r_n_r_n
lea edx, [esp + 0x14c]
push 0x100
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x18]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
mov edx, dword [ebx + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x150]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x40]
push eax
push 0x2000
push 0
push str.Log_file_:_00A0A000_s_00000000successfully_opened
push ebx
call fcn.00411e40
add esp, 0x14
jmp case.0x411c48.3
mov ecx, 9
mov esi, ebp
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [ebx + 4]
add esp, 4
add ecx, 0xfffffffe
cmp ecx, 4
ja case.0x411c48.3
jmp dword [ecx*4 + 0x411ce0]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 0x1c]
cmp edx, ecx
je case.0x411c48.3
jmp 0x411c88
cmp dword [esp + 0x34], 1
jne case.0x411c48.3
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + 0x1c]
cmp ecx, edx
je case.0x411c48.3
jmp 0x411c88
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
je case.0x411c48.3
jmp 0x411c88
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
cmp ecx, edx
je case.0x411c48.3
push 0
mov ecx, ebx
call fcn.004118b0
push 0
mov ecx, ebx
call fcn.004119a0
mov eax, dword [esp + 0x14]
pop ebp
dec word [eax + 8]
cmp word [eax + 8], 0
jne 0x411cba
mov edx, dword [eax]
mov dword [eax + 4], 0
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
add esp, 0x234
ret 4