Function at 0x5f46eef3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x5f46ef17
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x5f46ef51
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5f46ef6b
push 0xc9
push str.dlgprop.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f46ef6b
int3
xor eax, eax
test eax, eax
jne 0x5f46ef51
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x5f46f046
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x5f46f016
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5f46efc3
push 0xe1
push str.dlgprop.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f46efc3
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f46efa9
cmp dword [ebp - 0x18], 0
je 0x5f46f014
push str.DllGetVersion
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5f46f00a
mov eax, 1
test eax, eax
je 0x5f46f004
push 0xe6
push str.dlgprop.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f46f004
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f46efe7
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5f46f046
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x5f46f046
mov ecx, 1
test ecx, ecx
je 0x5f46f040
push 0xed
push str.dlgprop.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f46f040
int3
xor edx, edx
test edx, edx
jne 0x5f46f023
call sym.MFC42D.DLL_Ordinal_1100
cmp dword [eax + 0x1054], 0
je 0x5f46f063
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call sym.MFC42D.DLL_Ordinal_3232
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.5f46ed69
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x48], 0
je 0x5f46f093
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x48], 0
cmp dword [ebp - 8], 0
je 0x5f46f0a8
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8