Function at 0x401460
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x402030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x20], 0x4032c0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x40]
push 0x4040a0
and esi, 0xffff
mov byte [esp + 0x3c], 3
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
test edi, edi
jne 0x40152b
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 4
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], ebx
call fcn.00401d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push 0x4040a0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40157f
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 5
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], ebx
call fcn.00401d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4015d2
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 6
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40162e
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
push 0x1001
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40168f
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 8
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push edi
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
mov dword [esp + 0x1c], 0x4032c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 9
call fcn.00401d6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x4032ac
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d64
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8