Function at 0x6642e740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
movzx eax, dx
test dx, dx
je 0x6642e8b8
mov dword [esp], eax
call fcn.664253a0
mov ebx, eax
test di, di
je 0x6642e8a0
test eax, eax
je 0x6642e8a0
mov eax, dword [eax + 0x40]
movzx esi, di
test eax, eax
je 0x6642e868
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x6642e91a
cmp dword [edx + 4], esi
jl 0x6642e918
mov edx, dword [edx + 8]
lea ecx, [edx + esi*8 - 8]
mov edx, dword [ecx]
movzx edi, word [ecx + 4]
mov dword [esp + 4], edx
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x2c]
sub esp, 8
mov esi, eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x6642e8a0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
mov esi, eax
test byte [0x66444974], 8
jne 0x6642ea70
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.krnl386.exe16_GlobalAlloc16
sub esp, 8
mov ebx, eax
cmp di, 6
je 0x6642ea10
ja 0x6642e8d0
cmp di, 4
je 0x6642eaf0
cmp di, 5
jne 0x6642ea40
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6642da30
sub esp, 0xc
jmp 0x6642e8a2
movzx eax, word [ebx + 0x24]
add eax, 2
lea ecx, [ebx + eax]
cmp eax, esi
jl 0x6642e898
jmp 0x6642e8a0
movzx edx, word [ecx + 2]
lea edx, [edx + edx*2]
lea eax, [eax + edx*4 + 8]
cmp eax, esi
jg 0x6642e928
lea ecx, [ebx + eax]
jge 0x6642e8a0
cmp word [ecx], 0
jne 0x6642e880
nop
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
call fcn.66432cc0
movzx eax, word [eax + 0x1e]
jmp 0x6642e765
cmp di, 9
jne 0x6642ea40
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
lea esi, [esi]
nop
movzx edx, byte [esi]
add eax, 5
add esi, 8
mov byte [eax - 5], dl
movzx ecx, word [esi - 6]
mov word [eax - 4], cx
movzx ecx, word [esi - 4]
mov word [eax - 2], cx
test dl, dl
jns 0x6642e8f0
jmp 0x6642e8a2
xor edx, edx
xor edi, edi
jmp 0x6642e7af
sub eax, esi
imul eax, eax, 0xaaaaaaab
ror eax, 2
cmp eax, 0x15555555
ja 0x6642e8a0
lea edx, [ebx + esi]
movzx eax, word [edx + 8]
test ax, ax
jne 0x6642eab0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x6642e9d0
mov eax, dword [0x664521c0]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x6642eb19
movzx eax, word [edx + 8]
mov word [ebp - 0x30], ax
movzx eax, word [ebx + 0x48]
mov word [ebp - 0x34], ax
cmp dword [ebp - 0x2c], ecx
je 0x6642e9d0
movzx eax, word [ebp - 0x30]
mov dword [esp + 8], 6
mov dword [esp + 4], 0
mov dword [esp], ecx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x1a], ax
movzx eax, word [ebp - 0x34]
mov word [ebp - 0x1e], di
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1e]
mov dword [esp + 0xc], eax
call sym.krnl386.exe16_K32WOWCallback16Ex
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
mov ebx, eax
mov word [edx + 8], ax
jmp 0x6642e9f7
mov dword [esp + 8], esi
movzx eax, word [ebx + 0x48]
mov dword [ebp - 0x2c], edx
mov dword [esp + 4], eax
movzx eax, word [edx + 8]
mov dword [esp], eax
call fcn.6642e400
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov ebx, eax
mov word [edx + 8], ax
test bx, bx
je 0x6642e8a2
add word [edx + 0xa], 1
or word [edx + 4], 4
jmp 0x6642e8a2
test byte [0x66444974], 1
je 0x6642ea40
mov dword [esp + 0xc], str.not_yet_implemented__n
mov dword [esp + 8], str.NE_LoadPEResource
mov dword [esp + 4], 0x66444974
mov dword [esp], 0
call fcn.6642d470
lea esi, [esi]
movzx eax, bx
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
mov edi, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edi
call sub.ucrtbase.dll_memcpy
jmp 0x6642e8a2
movzx eax, di
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 0x48]
mov dword [esp + 0xc], str.module_04x_type_04x_n
mov dword [esp + 8], str.NE_LoadPEResource
mov dword [esp + 4], 0x66444974
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.6642d470
jmp 0x6642e800
mov dword [esp], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
call fcn.66409130
mov ecx, dword [ebp - 0x2c]
sub esp, 4
test ah, 0x40
mov edx, dword [ebp - 0x30]
jne 0x6642e94e
movzx eax, word [edx + 0xa]
add eax, 1
mov word [edx + 0xa], ax
test byte [0x66444974], 8
jne 0x6642eb57
movzx ebx, word [edx + 8]
jmp 0x6642e8a2
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6642dfe0
sub esp, 0xc
jmp 0x6642e8a2
mov dword [esp], 0x6644e7c8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
call sym.krnl386.exe16_GetModuleHandle16
sub esp, 4
movzx eax, ax
mov dword [esp + 4], str.DefResourceHandler
mov dword [esp], eax
call fcn.66426a90
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [0x664521c0], eax
jmp 0x6642e965
movzx eax, ax
mov dword [esp + 0xc], str.__Already_loaded__new_count_d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.LoadResource16
mov dword [esp + 4], 0x66444974
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call fcn.6642d470
mov edx, dword [ebp - 0x2c]
jmp 0x6642eae4