Function at 0x5889472e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5889ee3a
call fcn.5889ec10
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call fcn.5889e13d
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CMapWordToPtr::CMapWordToPtr
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x588919e8
push 0x588919e0
push eax
call ebx
mov esi, eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
jmp 0x58894813
cmp word [esi], 0
je 0x58894817
xor eax, eax
mov ah, byte [esi]
inc esi
push 4
mov dword [ebp - 0x14], eax
movzx ax, byte [esi]
or dword [ebp - 0x14], eax
inc esi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x588947dd
push esi
mov ecx, eax
call fcn.5889e3fa
mov dword [ebp - 0x18], eax
jmp 0x588947e1
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, esi
mov byte [ebp - 4], 2
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x588947f0
sub eax, ecx
cmp dword [ebp - 0x18], 0
lea esi, [esi + eax + 1]
je 0x58894813
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CMapWordToPtr::operator__
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
test esi, esi
jne 0x588947a7
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x588919bc
push 0x588919e0
push eax
call ebx
mov esi, eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x588949fb
movzx eax, byte [ebx]
shl eax, 0x18
inc ebx
movzx ecx, byte [ebx]
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
inc ebx
mov ch, byte [ebx]
or eax, ecx
inc ebx
movzx ecx, byte [ebx]
or eax, ecx
lea eax, [eax + eax + 2]
push eax
inc ebx
mov dword [ebp - 0x2c], eax
call sub.MFC42u.DLL_operatornew
mov edi, dword [ebp - 0x1c]
and dword [edi + 0xd0], 0
test eax, eax
pop ecx
mov dword [edi + 0xcc], eax
je 0x58894a31
mov dword [ebp - 0x14], 0xfeff
mov word [eax], 0xfeff
add dword [edi + 0xd0], 2
jmp 0x588949f3
mov al, byte [ebx]
test al, al
je 0x588949fb
js 0x588948dc
movzx ax, al
dec eax
inc ebx
cmp ax, 0x13
mov dword [ebp - 0x14], eax
ja 0x5889497b
movzx eax, ax
push dword [eax*4 + section..data]
lea ecx, [ebp - 0x10]
call fcn.5889e3f4
jmp 0x5889497b
xor ecx, ecx
mov ch, al
inc ebx
mov eax, ecx
mov dword [ebp - 0x14], eax
movzx cx, byte [ebx]
or eax, ecx
mov ecx, eax
and cx, 0xc000
inc ebx
cmp cx, 0x8000
mov dword [ebp - 0x14], eax
jne 0x58894921
lea ecx, [ebp - 0x20]
push ecx
and eax, 0xffff7fff
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CMapWordToPtr::Lookup
test eax, eax
je 0x5889497b
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
jmp 0x5889497b
and eax, 0x3fff
add eax, 0x3e8
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x10]
push eax
mov esi, 0x588919b8
push esi
lea eax, [ebp - 0x28]
push eax
call sub.MFC42u.DLL_operator_1
push esi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
mov ecx, dword [edi + 0xd0]
add ecx, eax
cmp ecx, dword [ebp - 0x2c]
jae 0x588949f3
lea eax, [eax + eax + 2]
push eax
call sub.MFC42u.DLL_operatornew
push dword [ebp - 0x10]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [edi + 0xd0]
push dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add edi, dword [eax + 0xcc]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
shl ecx, 1
add dword [eax + 0xd0], ecx
call sub.MFC42u.DLL_operatordelete
mov edi, dword [ebp - 0x1c]
add esp, 0x18
test ebx, ebx
jne 0x588948a6
mov eax, dword [ebp - 0x44]
neg eax
sbb eax, eax
test eax, eax
mov dword [ebp - 0x18], eax
je 0x58894a31
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CMapWordToPtr::GetNextAssoc
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x58894a2b
push 1
call fcn.58894633
cmp dword [ebp - 0x18], 0
jne 0x58894a09
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.5889e3ca
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
pop edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret