Function at 0x40ce90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4226e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0x10c
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.00421016
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.00421016
mov ebx, 3
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
test esi, esi
je 0x40d228
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42ea78
push eax
call edi
add esp, 8
test eax, eax
jne 0x40d045
mov eax, dword [esp + 0x50]
cmp eax, ebx
ja case.default.0x40d068
jmp dword [eax*4 + 0x40d320]
push 0x42ea78
push 0x89
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42f0a0
lea ecx, [esp + 0x54]
push 0x43191c
push ecx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42ea78
push 0x8b
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42f094
lea edx, [esp + 0x20]
push 0x43191c
push edx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42ea78
push 0x8c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push 0x42f084
lea eax, [esp + 0x24]
push 0x43191c
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42f080
push 0x85
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.SiRFflashcl.exe
lea ecx, [esp + 0x28]
push 0x43191c
push ecx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
mov edx, dword [esp + 0x4c]
push str.NEMERIX
push edx
call edi
add esp, 8
test eax, eax
jne 0x40d18c
mov eax, dword [esp + 0x50]
cmp eax, ebx
ja case.default.0x40d068
jmp dword [eax*4 + 0x40d330]
push 0x42f080
push 0x86
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push 0x42f060
lea eax, [esp + 0x54]
push 0x43191c
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42f080
push 0x88
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42f054
lea ecx, [esp + 0x28]
push 0x43191c
push ecx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42f080
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42f048
lea edx, [esp + 0x24]
push 0x43191c
push edx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
push 0x42f080
push 0x93
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push 0x42f03c
lea eax, [esp + 0x20]
push 0x43191c
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
mov ecx, dword [esp + 0x4c]
push 0x42f034
push ecx
call edi
add esp, 8
test eax, eax
jne case.default.0x40d068
mov eax, dword [esp + 0x50]
test eax, eax
jne case.default.0x40d068
push 0x42f034
push 0x95
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42f024
lea edx, [esp + 0x54]
push 0x43191c
push edx
mov edi, eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d1f0
mov edi, dword [esp + 0x4c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d20a
push eax
push eax
mov dword [0x4324b0], eax
push str.Resource_Road_Fail
jmp 0x40d223
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40d26a
push eax
push eax
mov dword [0x4324b0], eax
push str.Memory_Fail
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40d308
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x18]
push 0x9001
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::CFile_1
push edi
push esi
mov byte [esp + 0x48], 0xd
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], bl
call fcn.0042121a
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0xc