Function at 0x401300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
call fcn.00401e90
test eax, eax
jne 0x401347
mov ecx, ebx
call sub.MFC42.DLL_CDialog::DoModal
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [ebp - 0x1c], ecx
je 0x4013a7
push 5
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov edx, dword [ebx + 0x44]
mov esi, eax
push 5
push edx
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp - 0x24]
mov esi, eax
test esi, esi
je 0x4013d8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x4013d0
mov ecx, edi
mov esi, eax
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
mov ecx, ebx
call fcn.00401200
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4013f3
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call sub.MFC42.DLL_CDialog::PreModal
mov esi, eax
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_AfxUnhookWindowCreate
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x18], edi
je 0x401427
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401427
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], edi
push ebx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxHookWindowCreate
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
push ecx
push eax
push edx
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CreateDlgIndirect
cmp eax, edi
je 0x4014b5
test byte [ebx + 0x28], 0x10
je 0x40147a
mov ecx, ebx
mov edi, 4
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 1
je 0x401472
mov edi, 5
push edi
mov ecx, ebx
call sub.MFC42.DLL_CWnd::RunModalLoop
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4014b5
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowPos
jmp 0x4014b5
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4014d1
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x4014e7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 0x20]
jne 0x4014e7
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x60]
mov ecx, ebx
call sub.MFC42.DLL_CDialog::PostModal
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401505
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret