Function at 0x6c831360
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
test byte [0x6c8459a0], 8
jne 0x6c831380
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6c8459a0
call fcn.6c83fb60
test al, 8
je 0x6c831375
mov ebx, esi
test byte [0x6c8459a0], 8
jne 0x6c831590
mov eax, dword [0x6c853604]
mov edi, 0x6c853604
test eax, eax
jne 0x6c8313c6
jmp 0x6c831550
lea edi, [eax + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x6c831550
cmp word [eax], bx
jne 0x6c8313b8
movzx eax, word [eax + 2]
mov dword [esp], eax
call sym.krnl386.exe16_GlobalUnlock16
mov eax, dword [edi]
sub esp, 4
movzx eax, word [eax + 2]
mov dword [esp], eax
call sym.krnl386.exe16_GlobalFree16
mov ecx, dword [edi]
mov edx, dword [sym.imp.ucrtbase.dll_strlen]
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x20]
add eax, 0xd
mov edx, dword [ebp - 0x1c]
test ecx, ecx
je 0x6c831556
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
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_HeapReAlloc]
sub esp, 0x10
mov dword [edi], eax
mov dword [eax + 8], 0
mov eax, dword [edi]
mov word [eax], si
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll_strrchr]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call esi
lea edx, [eax + 1]
test eax, eax
cmove edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [edi]
mov dword [ebp + 0xc], edx
add eax, 0xc
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp + 4], 0x2e
mov eax, dword [edi]
add eax, 0xc
mov dword [esp], eax
call esi
test eax, eax
je 0x6c831496
mov byte [eax], 0
mov dword [esp + 0xc], 0x1b
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffff
mov dword [esp], 0x40
call fcn.6c808bc0
mov ebx, dword [edi]
movzx eax, ax
mov dword [esp], eax
call fcn.6c809c40
mov word [ebx + 2], ax
mov ebx, dword [edi]
sub esp, 4
movzx eax, word [ebx + 2]
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
mov dword [ebx + 4], eax
mov eax, dword [edi]
sub esp, 4
mov edx, dword [eax + 4]
test edx, edx
jne 0x6c831375
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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_HeapFree]
sub esp, 0xc
test byte [0x6c8459a0], 1
je 0x6c831375
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.SNOOP16_RegisterDLL
mov dword [esp + 4], 0x6c8459a0
mov dword [esp], 0
call fcn.6c831310
jmp 0x6c831375
mov edx, dword [sym.imp.ucrtbase.dll_strlen]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call edx
mov dword [esp + 4], 8
add eax, 0xd
mov dword [esp + 8], eax
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 dword [edi], eax
jmp 0x6c83143d
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.hmod_x__name_s_n
mov dword [esp + 8], str.SNOOP16_RegisterDLL
mov dword [esp + 4], 0x6c8459a0
mov dword [esp], 3
mov dword [esp + 0x14], eax
movzx eax, si
mov dword [esp + 0x10], eax
call fcn.6c831310
jmp 0x6c83139f