Function at 0x4042de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413872
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov dword [ebp - 0x90], ecx
mov eax, 1
test eax, eax
je 0x404317
mov dword [ebp - 0x94], 0
jmp 0x40432a
push str.IMPORTANT:Use_BCMenu::DestroyMenu_to_destroy_Loaded_Menus_n
call fcn.004070d0
add esp, 4
mov dword [ebp - 0x94], eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 0x1c], eax
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404358
xor eax, eax
jmp 0x404815
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.004070e0
test eax, eax
jle 0x404378
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.00406f30
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4043a5
xor eax, eax
jmp 0x404815
mov ecx, dword [ebp - 0x90]
call fcn.00408150
test eax, eax
jne 0x4043bb
xor eax, eax
jmp 0x404815
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
xor eax, eax
mov ax, word [edx + 2]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x6c], 0
mov word [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x60]
call fcn.00407190
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407910
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x60]
call fcn.004078d0
push 0
lea ecx, [ebp - 0x44]
call fcn.004079a0
push 2
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x6c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x64]
add eax, 2
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x6c]
and ecx, 0xffff
and ecx, 0x10
test ecx, ecx
jne 0x40447f
push 2
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x64]
add ecx, 2
mov dword [ebp - 0x64], ecx
jmp 0x404485
mov word [ebp - 0x10], 0
mov edx, dword [ebp - 0x6c]
and edx, 0xffff
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
and eax, 0x80
test eax, eax
je 0x4044a9
mov ecx, dword [ebp - 0x20]
sub ecx, 0x80
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x6c]
and eax, 0xffff
and eax, 0x10
test eax, eax
je 0x404607
mov ecx, dword [ebp - 0x6c]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x40453a
push 1
lea ecx, [ebp - 0x60]
call fcn.00406f10
push eax
lea ecx, [ebp - 0x44]
call fcn.00407980
push 0x58
call fcn.00407070
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x84], 0
je 0x404567
mov ecx, dword [ebp - 0x84]
call fcn.00401257
mov dword [ebp - 0x98], eax
jmp 0x404571
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x38]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x34], 1
mov ecx, dword [ebp - 0x74]
call fcn.00408170
push 0xffffffffffffffff
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x60]
call fcn.00406f10
push eax
lea ecx, [ebp - 0x60]
call fcn.004078f0
mov ecx, dword [eax]
call fcn.00402b83
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x60]
call fcn.004078d0
push 0
lea ecx, [ebp - 0x44]
call fcn.004079a0
jmp 0x4046b9
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00406f10
push eax
lea ecx, [ebp - 0x60]
call fcn.004078f0
mov ecx, dword [eax]
call fcn.00402b83
mov ecx, dword [ebp - 0x6c]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x404659
push 1
lea ecx, [ebp - 0x60]
call fcn.00406f10
push eax
lea ecx, [ebp - 0x44]
call fcn.00407980
lea ecx, [ebp - 0x60]
call fcn.00406f10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x4046b9
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x44]
call fcn.00407960
test eax, eax
je 0x4046b9
lea ecx, [ebp - 0x60]
call fcn.00406f10
push eax
lea ecx, [ebp - 0x60]
call fcn.004078f0
mov ecx, dword [eax]
call fcn.00404825
push 1
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CPtrArray::RemoveAt
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004079d0
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x404664
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.00406f10
cmp eax, 0xffffffff
jne 0x404437
mov dword [ebp - 0x24], 0
jmp 0x4046f4
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x90]
call fcn.004081f0
cmp dword [ebp - 0x24], eax
jge 0x4047ea
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.00407840
mov ecx, dword [eax]
call fcn.00401129
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.004082b0
test eax, eax
je 0x404789
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.00407840
mov ecx, dword [eax]
mov dword [ecx + 0xc], 0x410
lea ecx, [ebp - 0x78]
call fcn.00407000
push eax
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.004082b0
mov eax, dword [eax + 4]
push eax
push 0x410
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.00408310
jmp 0x4047d9
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.00407840
mov eax, dword [eax]
mov dword [eax + 0xc], 0x400
lea ecx, [ebp - 0x78]
call fcn.00407000
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 8
call fcn.00407840
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
push eax
push 0x400
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.00408310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
jmp 0x4046eb
mov dword [ebp - 0x8c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004071b0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4