Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403317
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov al, byte [0x405958]
push ebx
push esi
push edi
mov byte [ebp - 0x428], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
push str.48bitScanUpdate::MsgDisplayString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00402fd4
mov eax, dword [0x405960]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x401a18
mov ecx, dword [str.__Entering]
mov edx, dword [ebp - 0x18]
push ecx
push edx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push eax
shr ecx, 4
inc ecx
mov byte [ebp - 4], 3
and ecx, 0xffff
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebx
jne 0x401a71
cmp dword [0x405960], ebx
je 0x401a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x405960]
push eax
push str.FindResourceEx_failed.Error__d
push edx
call fcn.00402aa0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x4043a0
push eax
mov dword [ebp - 0x20], ebx
call sub.MSVCRT.dll__CxxThrowException
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401b89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401aa9
xor eax, eax
mov ecx, esi
and ecx, 0xf
cmp eax, ecx
jae 0x401aa5
xor edx, edx
inc eax
mov dx, word [ebx]
lea ebx, [ebx + edx*2 + 2]
jmp 0x401a90
test ebx, ebx
jne 0x401aae
mov ebx, 0x40596c
xor eax, eax
mov ax, word [ebx]
inc eax
add eax, eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x401aeb
xor ecx, ecx
lea esi, [ebx + 2]
mov cx, word [ebx]
mov edi, eax
mov word [eax + ecx*2], 0
xor ecx, ecx
mov cx, word [ebx]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x401b0f
lea ecx, [ebp - 0x28]
push 0x4043a0
push ecx
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401b1f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [0x405960]
mov dword [ebp - 4], 2
test eax, eax
je 0x401b48
mov ecx, dword [str.__Exiting]
mov edx, dword [ebp - 0x18]
push ecx
push edx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x1c]
or al, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
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
lea edx, [ebp - 0x24]
push 0x4043a0
push edx
mov dword [ebp - 0x24], ebx
call sub.MSVCRT.dll__CxxThrowException
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x401bd5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push 0x400
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, 0x401b1f
ret