Function at 0x401712
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
jmp 0x403400
push 0xffffffffffffffff
push 0x45ce38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
push str.Create_Kernel_Folder...
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
push 0
push 2
push eax
mov dword [esp + 0x30], 0
call fcn.004012df
add esp, 0xc
lea ecx, [esp + 8]
push 0x46e054
call sub.MFC42u.DLL_CString::CString_2
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x4697dc
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::TrimRight_2
lea ecx, [esp + 0x10]
push str._Y_m_d_H_M_S
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, eax
call sub.MFC42u.DLL_CTime::Format
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
push str._sIPGASKERNEL_s_
push esi
mov byte [esp + 0x34], 2
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0xc]
push edx
push str._tCreate_Kernel_folder__s..._r_n
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
call fcn.004012df
mov eax, dword [esi]
push eax
call fcn.00401717
add esp, 0x1c
test eax, eax
jne 0x4035df
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea edx, [esp + 0x10]
push str._tCreate_folder_failed._LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
push 0
push 1
push eax
call fcn.004012df
add esp, 0x18
lea ecx, [esp + 8]
push 0x46e054
call sub.MFC42u.DLL_CString::operator
push 0x104
push 0x104
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x4697dc
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
push edx
push str._sTempIPGASKERNEL_s_
push esi
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0xc]
push eax
push str._tCreate_Kernel_folder__s..._r_n
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
push 0
push 2
push edx
call fcn.004012df
mov esi, dword [esi]
push esi
call fcn.00401717
add esp, 0x1c
test eax, eax
jne 0x4035df
call edi
push eax
lea eax, [esp + 0x10]
push str._tCreate_folder_failed._LastError:_d_r_n
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
push 0
push 1
push ecx
call fcn.004012df
add esp, 0x18
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push 0x463d90
push edx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret