Function at 0x67902040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798d770
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x67902081
mov eax, dword [esi + 0x20]
test eax, eax
je 0x67902081
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
call sub.MFC42.DLL_AfxGetModuleState
mov ebp, dword [eax + 8]
mov al, byte [esi + 0x64]
test al, 1
je 0x679020c5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x679020c5
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDialogTemplate::CDialogTemplate
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CDialogTemplate::Detach
mov edi, eax
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x6790215f
mov eax, dword [esi + 0x6c]
push 5
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, eax
test ebp, ebp
jne 0x679020ea
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov ecx, dword [esi + 0x6c]
push 5
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x6790210f
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x6790212f
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDialogTemplate::CDialogTemplate
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CDialogTemplate::Detach
mov edi, eax
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.6797e8ca
test edi, edi
jne 0x6790217e
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x6790219d
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov dx, word [eax + 2]
cmp dx, 0xffff
jne 0x679021ad
mov ecx, dword [eax + 0xc]
jmp 0x679021af
mov ecx, dword [eax]
and ecx, 0x2000068
or ecx, 0x40010404
cmp dx, 0xffff
jne 0x679021c7
mov dword [eax + 0xc], ecx
jmp 0x679021c9
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
push ebp
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::CreateDlgIndirect
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x67902215
push esi
lea ecx, [esp + 0x18]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWindowRect::constructor_class_CWnd_const__
mov ecx, dword [eax + 8]
mov edx, dword [eax]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
sub edx, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
jmp 0x67902229
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 5
lea eax, [esp + 0x10]
push 5
mov dword [esi + 0x128], ecx
push eax
mov dword [esi + 0x12c], edx
call sym.MfcHlpr520.dll_public:_static_class_CPoint___cdecl_CMHPDrawHelpers::Dlu2Pix_int__int_
mov ecx, eax
add esp, 0xc
mov eax, dword [ecx]
pop edi
mov ecx, dword [ecx + 4]
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], ecx
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4