Function at 0x403c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
call fcn.00408d50
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push eax
call fcn.00408ee0
mov ecx, dword [esi + 0x48]
mov ebx, eax
mov eax, dword [esi + 0x4c]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x403cb4
push 5
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov edx, dword [esi + 0x44]
push ebx
mov edi, eax
push edx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x403caa
mov eax, dword [esi + 0x44]
push 5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x403cb7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403cc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403cef
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
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, esi
call sub.MFC42.DLL_CDialog::PreModal
mov ebx, eax
mov dword [ebp - 0x24], ebx
call sub.MFC42.DLL_AfxUnhookWindowCreate
test ebx, ebx
mov dword [ebp - 0x1c], 0
je 0x403d26
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x403d26
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_AfxHookWindowCreate
push ebx
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [ebp - 0x14]
push edi
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::CreateDlgIndirect
test eax, eax
je 0x403db3
test byte [esi + 0x28], 0x10
je 0x403d73
mov ecx, esi
mov edi, 4
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 1
je 0x403d6b
mov edi, 5
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::RunModalLoop
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403db3
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
jmp 0x403db3
mov dword [ebp - 4], 0
call sub.MFC42.DLL_AfxTryCleanup
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403dcf
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x403de5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x403de5
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call sub.MFC42.DLL_CDialog::PostModal
mov esi, dword [esi + 0x30]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret