Function at 0x6c82f1f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

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, 0x58
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
movzx eax, dx
test dx, dx
je 0x6c82f458
mov dword [esp], eax
call fcn.6c8255b0
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x6c82f252
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x6c82f470
test byte [0x6c845974], 8
jne 0x6c82f4e1
mov eax, dword [ebp - 0x2c]
cmp word [eax + 0x24], 0
jne 0x6c82f268
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x24]
mov edi, eax
shr edi, 0x10
test edi, edi
jne 0x6c82f53d
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6c82f6d3
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0x23
je 0x6c82f6be
xor edi, edi
mov esi, dword [ebp - 0x2c]
movzx eax, word [esi + 0x24]
lea ecx, [esi + eax + 2]
movzx edx, word [ecx]
mov dword [ebp - 0x38], ecx
test dx, dx
je 0x6c82f6e1
mov eax, dword [ebp - 0x24]
and ah, 0x7f
mov dword [ebp - 0x34], eax
jmp 0x6c82f2d9
mov ecx, dword [ebp - 0x38]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4 + 8]
movzx edx, word [eax]
mov dword [ebp - 0x38], eax
test dx, dx
je 0x6c82f870
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 2]
cmp dx, 0x800f
jne 0x6c82f2c0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
add edx, 8
mov dword [ebp - 0x30], edx
test eax, eax
jne 0x6c82f374
jmp 0x6c82f945
test edi, edi
jne 0x6c82f420
cmp dword [ebp - 0x34], eax
jne 0x6c82f420
movzx eax, word [ebx + 4]
test ax, ax
js 0x6c82f5e0
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x6c82f420
mov edx, dword [ebp - 0x1c]
and edx, 0x7fff
cmp edx, eax
jne 0x6c82f420
test byte [0x6c845974], 8
jne 0x6c82f620
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx + 2]
mov dword [esp], eax
mov dword [ebp - 0x3c], edx
call sym.krnl386.exe16_FreeResource16
mov edx, dword [ebp - 0x3c]
sub esp, 4
test edx, edx
jne 0x6c82f810
add dword [ebp - 0x30], 0xc
sub dword [ebp - 0x40], 1
je 0x6c82f447
test byte [0x6c845974], 8
jne 0x6c82f680
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
sub eax, edx
movzx eax, ax
mov dword [esp + 4], eax
movzx eax, word [edx + 0x48]
mov dword [esp], eax
call sym.krnl386.exe16_LoadResource16
movzx eax, ax
sub esp, 8
mov dword [ebp - 0x20], eax
test byte [0x6c845974], 8
jne 0x6c82f650
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.krnl386.exe16_K32WOWGlobalLock16
sub esp, 4
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6c82f42b
cmp word [ebx], 0
je 0x6c82f42b
lea esi, [esi]
nop
test byte [0x6c845974], 8
jne 0x6c82f588
movzx eax, word [ebx + 2]
test ax, ax
jns 0x6c82f300
test edi, edi
je 0x6c82f420
lea eax, [ebx + 6]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
je 0x6c82f311
lea esi, [esi]
movzx eax, word [ebx]
add ebx, eax
cmp word [ebx], 0
jne 0x6c82f3e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.krnl386.exe16_FreeResource16
add dword [ebp - 0x30], 0xc
sub esp, 4
sub dword [ebp - 0x40], 1
jne 0x6c82f374
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 2]
jmp 0x6c82f2c0
call fcn.6c833000
movzx eax, word [eax + 0x1e]
jmp 0x6c82f21e
mov edi, dword [ebp - 0x24]
mov dword [esp], eax
mov esi, dword [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov esi, edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
mov eax, edi
sub esp, 0xc
shr eax, 0x10
xor edi, edi
test eax, eax
mov eax, dword [ebp - 0x2c]
cmove edi, esi
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x6c82f833
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
test ecx, ecx
jle 0x6c82f907
xor eax, eax
jmp 0x6c82f4cb
add eax, 1
cmp eax, ecx
je 0x6c82f7e3
cmp ebx, dword [edx + eax*8]
jne 0x6c82f4c0
lea esp, [ebp - 0x10]
add eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x24]
call fcn.6c82d750
mov ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.6c82d750
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 0x48]
mov dword [esp + 0xc], str.module_04x_name_s_type_s_n
mov dword [esp + 8], str.FindResource16
mov dword [esp + 4], 0x6c845974
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.6c82d990
mov eax, dword [ebp - 0x2c]
cmp word [eax + 0x24], 0
je 0x6c82f252
jmp 0x6c82f268
cmp byte [eax], 0x23
je 0x6c82f8f0
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6c82f297
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0x23
jne 0x6c82f297
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_atoi]
mov dword [ebp - 0x28], 0
movzx eax, ax
mov dword [ebp - 0x1c], eax
jmp 0x6c82f297
lea esi, [ebx + 6]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [ebx + eax + 7]
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 2]
mov dword [esp + 0xc], str.__type_04x__s_id_04x__s_n
mov dword [esp + 8], str.NE_FindNameTableId
mov dword [esp + 4], 0x6c845974
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.6c82d990
jmp 0x6c82f3ed
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x6c82f420
lea eax, [ebx + 6]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [ebx + eax + 7]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
jne 0x6c82f420
test byte [0x6c845974], 8
je 0x6c82f347
mov dword [esp + 0xc], str.__Found__n
mov dword [esp + 8], str.NE_FindNameTableId
mov dword [esp + 4], 0x6c845974
mov dword [esp], 3
call fcn.6c82d990
jmp 0x6c82f347
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__04x__n
mov dword [esp + 8], str.WIN16_LockResource16
mov dword [esp + 4], 0x6c845974
mov dword [esp], 3
call fcn.6c82d990
jmp 0x6c82f3b2
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 6]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
mov dword [esp + 0xc], str.NameTable_entry:_type_04x_id_04x_n
mov dword [esp + 8], str.NE_FindNameTableId
mov dword [esp + 4], 0x6c845974
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.6c82d990
jmp 0x6c82f381
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_atoi]
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
movzx eax, word [eax + 0x24]
mov edi, dword [ebp - 0x2c]
add edi, eax
lea edx, [edi + 2]
lea esi, [esi]
mov ecx, dword [ebp - 0x24]
mov eax, edi
call fcn.6c82d9e0
mov edx, eax
test eax, eax
je 0x6c82f252
lea ebx, [eax + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x6c82f7a8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov edx, dword [ebp - 0x20]
mov ecx, eax
movzx esi, word [edx + 2]
test esi, esi
je 0x6c82f82f
movzx eax, al
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
jmp 0x6c82f74c
add ebx, 0xc
sub esi, 1
je 0x6c82f7d0
movzx eax, word [ebx + 6]
test ax, ax
js 0x6c82f740
add eax, edi
cmp cl, byte [eax]
jne 0x6c82f740
mov byte [ebp - 0x20], cl
mov ecx, dword [ebp - 0x30]
add eax, 1
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll__strnicmp]
movzx ecx, byte [ebp - 0x20]
test eax, eax
jne 0x6c82f740
test byte [0x6c845974], 8
jne 0x6c82f87c
mov eax, ebx
sub ax, word [ebp - 0x2c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
movzx ecx, word [ebp - 0x1c]
movzx esi, word [edx + 2]
or cx, 0x8000
mov eax, esi
test esi, esi
jne 0x6c82f7c8
jmp 0x6c82f7d7
add ebx, 0xc
sub eax, 1
je 0x6c82f7d7
cmp cx, word [ebx + 6]
jne 0x6c82f7c0
jmp 0x6c82f780
mov edx, dword [ebp - 0x34]
movzx esi, word [edx + 2]
lea eax, [esi + esi*2]
lea edx, [edx + eax*4 + 8]
jmp 0x6c82f6f0
cmp dword [esi], eax
je 0x6c82f8ac
mov dword [edx + ecx*8], ebx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov word [eax + edx*8 + 4], di
mov eax, dword [esi + 4]
add eax, 1
mov dword [esi + 4], eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
movzx eax, dx
shr edx, 0x10
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
movzx eax, word [eax + 0x24]
jmp 0x6c82f6e1
xor esi, esi
jmp 0x6c82f7d7
mov dword [esp + 8], 0xc
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6c82f982
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x4c], esi
jmp 0x6c82f4a8
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 0x24]
jmp 0x6c82f6e1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.____Found_id__p_n
mov dword [esp + 8], str.FindResource16
mov dword [esp + 4], 0x6c845974
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.6c82d990
jmp 0x6c82f78d
lea eax, [eax*8 + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 8
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edx, eax
test edx, edx
je 0x6c82f94c
add dword [esi], 0x10
mov dword [esi + 8], edx
mov ecx, dword [esi + 4]
jmp 0x6c82f7eb
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_atoi]
movzx eax, ax
mov dword [ebp - 0x24], eax
jmp 0x6c82f278
mov eax, dword [esi]
cmp eax, ecx
jne 0x6c82f7eb
lea eax, [eax*8 + 0x80]
test edx, edx
jne 0x6c82f8b3
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
jmp 0x6c82f8de
xor eax, eax
jmp 0x6c82f2c0
test byte [0x6c845974], 2
je 0x6c82f252
mov dword [esp + 0xc], str.Cannot_grow_HRSRC_map_n
mov dword [esp + 8], str.MapHRsrc32To16
mov dword [esp + 4], 0x6c845974
mov dword [esp], 1
call fcn.6c82d990
jmp 0x6c82f252
test byte [0x6c845974], 2
je 0x6c82f252
mov dword [esp + 0xc], str.Cannot_allocate_HRSRC_map_n
jmp 0x6c82f961