Function at 0x6c82e9e0
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 0x6c82eb58
mov dword [esp], eax
call fcn.6c8255b0
mov ebx, eax
test di, di
je 0x6c82eb40
test eax, eax
je 0x6c82eb40
mov eax, dword [eax + 0x40]
movzx esi, di
test eax, eax
je 0x6c82eb08
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x6c82ebba
cmp dword [edx + 4], esi
jl 0x6c82ebb8
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 0x6c82eb40
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
mov esi, eax
test byte [0x6c845974], 8
jne 0x6c82ed10
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 0x6c82ecb0
ja 0x6c82eb70
cmp di, 4
je 0x6c82ed90
cmp di, 5
jne 0x6c82ece0
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.6c82dcd0
sub esp, 0xc
jmp 0x6c82eb42
movzx eax, word [ebx + 0x24]
add eax, 2
lea ecx, [ebx + eax]
cmp eax, esi
jl 0x6c82eb38
jmp 0x6c82eb40
movzx edx, word [ecx + 2]
lea edx, [edx + edx*2]
lea eax, [eax + edx*4 + 8]
cmp eax, esi
jg 0x6c82ebc8
lea ecx, [ebx + eax]
jge 0x6c82eb40
cmp word [ecx], 0
jne 0x6c82eb20
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.6c833000
movzx eax, word [eax + 0x1e]
jmp 0x6c82ea05
cmp di, 9
jne 0x6c82ece0
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 0x6c82eb90
jmp 0x6c82eb42
xor edx, edx
xor edi, edi
jmp 0x6c82ea4f
sub eax, esi
imul eax, eax, 0xaaaaaaab
ror eax, 2
cmp eax, 0x15555555
ja 0x6c82eb40
lea edx, [ebx + esi]
movzx eax, word [edx + 8]
test ax, ax
jne 0x6c82ed50
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x6c82ec70
mov eax, dword [0x6c8531c0]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x6c82edb9
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 0x6c82ec70
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 0x6c82ec97
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.6c82e6a0
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov ebx, eax
mov word [edx + 8], ax
test bx, bx
je 0x6c82eb42
add word [edx + 0xa], 1
or word [edx + 4], 4
jmp 0x6c82eb42
test byte [0x6c845974], 1
je 0x6c82ece0
mov dword [esp + 0xc], str.not_yet_implemented__n
mov dword [esp + 8], str.NE_LoadPEResource
mov dword [esp + 4], 0x6c845974
mov dword [esp], 0
call fcn.6c82d990
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 0x6c82eb42
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], 0x6c845974
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.6c82d990
jmp 0x6c82eaa0
mov dword [esp], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
call fcn.6c809200
mov ecx, dword [ebp - 0x2c]
sub esp, 4
test ah, 0x40
mov edx, dword [ebp - 0x30]
jne 0x6c82ebee
movzx eax, word [edx + 0xa]
add eax, 1
mov word [edx + 0xa], ax
test byte [0x6c845974], 8
jne 0x6c82edf7
movzx ebx, word [edx + 8]
jmp 0x6c82eb42
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.6c82e280
sub esp, 0xc
jmp 0x6c82eb42
mov dword [esp], 0x6c84f7c8
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.6c826ca0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [0x6c8531c0], eax
jmp 0x6c82ec05
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], 0x6c845974
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call fcn.6c82d990
mov edx, dword [ebp - 0x2c]
jmp 0x6c82ed84