Function at 0x401190
Capabilities:
Access peb ldr_data
Create directory
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4084a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x15c], 0
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
push edi
push ebp
inc eax
push ebx
push ecx
push eax
lea edx, [esp + 0x30]
push str._d._d__d:_d:_d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 4]
lea edi, [esi + 4]
push 0x40b740
push eax
mov byte [esp + 0x164], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
or ebp, 0xffffffff
test eax, eax
je 0x40128f
push edi
lea ecx, [esp + 0x14]
call fcn.00407f54
jmp 0x401327
push 0x104
push 0x105
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 4
call fcn.00407f54
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 3
call fcn.00407f12
push str.Log
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
jne 0x401327
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40143b
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 5
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 8]
inc eax
push edi
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s_d__d.txt
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x3001
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x168], 6
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 5
sete bl
call fcn.00407f12
test bl, bl
jne 0x40142a
mov eax, dword [esp + 0x28]
push 2
push 0
lea ecx, [esp + 0x30]
call dword [eax + 0x30]
lea ecx, [esp + 0x164]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_1
push 0x40b020
lea ecx, [esp + 0x1c]
mov bl, 7
push eax
push ecx
mov byte [esp + 0x168], bl
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x160], 8
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], bl
call fcn.00407f12
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 5
call fcn.00407f12
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 3
call fcn.00407f12
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 2
call fcn.00407f12
lea ecx, [esp + 0x28]
mov byte [esp + 0x15c], 1
call fcn.00407f5a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 0
call fcn.00407f12
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], ebp
call fcn.00407f12
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 4