Function at 0x458120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4865ec
mov eax, dword fs:[0]
push eax
mov eax, 0x421c
mov dword fs:[0], esp
call fcn.0040f8c0
mov eax, dword [0x4ce19c]
push ebx
mov ebx, dword [esp + 0x4234]
push ebp
push esi
push edi
push 0x48b000
mov ecx, ebx
mov dword [esp + 0x422c], eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push 0x104
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
push ebp
mov dword [esp + 0x4240], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4581d9
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.RRULoadString
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.GetModuleFileName
mov byte [esp + 0x4240], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ebp
mov byte [esp + 0x4240], 0
call fcn.00458010
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
jmp 0x458544
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::RetryRejectedCall]
inc eax
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4238], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4234], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push str.rr_res.dll
lea ecx, [esp + 0x14]
call dword [0x48a380]
mov eax, dword [esp + 0x10]
push eax
call fcn.004579e0
mov esi, dword [sym.imp.MSVCR71.dll__wgetenv]
add esp, 4
test eax, eax
jne 0x458274
call fcn.00457af0
test eax, eax
jne 0x458274
push str.TVTCOMMON
call esi
push eax
lea ecx, [esp + 0x18]
push str._s_rr_res.dll
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
call fcn.004579e0
add esp, 4
test eax, eax
jne 0x4582dd
call fcn.00457af0
test eax, eax
je 0x4582dd
mov eax, dword [0x4e314c]
push str.preboot
push eax
lea ecx, [esp + 0x18]
push str._s_sRR_rr_res.dll
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov edx, dword [esp + 0x20]
push edx
call fcn.004579e0
add esp, 0x14
test eax, eax
jne 0x4582dd
push str.preboot
push str.RAMD
call esi
add esp, 4
push eax
lea eax, [esp + 0x18]
push str._s_sRR_rr_res.dll
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebp
jne 0x458344
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.LoadLibrary
mov byte [esp + 0x4240], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ebp
mov byte [esp + 0x4240], 0
call fcn.00458010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
jmp 0x458544
mov edi, dword [esp + 0x4244]
cmp edi, ebp
mov dword [esp + 0x14], ebp
jne 0x45840b
mov edi, dword [esp + 0x423c]
push 0x2000
lea eax, [esp + 0x22c]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x458381
mov dword [esp + 0x14], 1
jmp 0x4583a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push edi
push str.RRULoadString___LoadString__d___s__failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
push 0x48c7b8
push ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x458536
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4a2ad4
mov byte [esp + 0x4240], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ebp
mov byte [esp + 0x4240], 0
call fcn.00458010
jmp 0x458533
mov ebx, dword [esp + 0x423c]
mov eax, ebx
mov ebp, ebx
shr eax, 4
and ebp, 0xf
inc eax
push edi
movzx ecx, ax
push ecx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x458476
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push ebx
push edx
call esi
push eax
push str.FindResourceEx_failed._Error__d_library_s_stringID_d_lang_d
push 0x48ae58
call fcn.004572b0
mov eax, dword [esp + 0x4258]
push 0
push eax
push ebx
call fcn.00458120
add esp, 0x24
call esi
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
jmp 0x458544
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x458501
mov esi, eax
xor ecx, ecx
mov ax, word [esi]
add esi, 2
test ax, ax
je 0x45849b
cmp ecx, ebp
movzx edi, ax
je 0x4584a3
lea esi, [esi + edi*2]
inc ecx
cmp ecx, 0x10
jl 0x458486
jmp 0x458513
lea ebx, [edi + 0xa]
lea ecx, [ebx + ebx]
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4584ef
test esi, esi
je 0x4584ef
test edi, edi
je 0x4584ef
push edi
push esi
push ebx
push ebp
call fcn.00457f20
mov edx, dword [esp + 0x4240]
push ebp
push 0x48c7b8
push edx
mov word [ebp + edi*2], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
mov dword [esp + 0x14], 1
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov ebx, dword [esp + 0x4240]
add esp, 4
jmp 0x458513
push str.pwchMem_is_NULL
push 0x48ae58
call fcn.004572b0
add esp, 8
mov esi, dword [esp + 0x4240]
push 0x48b000
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
jne 0x458536
push eax
push esi
push ebx
call fcn.00458120
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x422c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4228]
call fcn.00475533
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4228
ret