Function at 0x5c1528
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x2c]
jne 0x5c15c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x40]
xor esi, esi
mov ebx, 0x9b0e9c
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov dx, word [ebx - 4]
mov word [eax + esi*2 + 0x44], dx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
cmp eax, 0x100
je 0x5c15ad
cmp eax, dword [ebx - 4]
jne 0x5c15ad
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 1
jne 0x5c15ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
inc esi
add ebx, 0x10
cmp esi, 0x43
jne 0x5c1555
mov eax, dword [ebp - 4]
mov dword [eax + 0x244], 0x43
jmp 0x5c16f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004288f4
xor edx, edx
push ebp
push 0x5c16e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], ebx
mov eax, dword [ebx + 0x28]
or eax, 4
or eax, 8
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x3c]
mov word [ebx + 0x30], ax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
mov word [ebx + 0x32], ax
test byte [ebx + 0x28], 2
je OpenClipboard
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x34]
mov word [ebx + 0x2e], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test byte [eax + 0x28], 1
je OemToCharA
mov edx, dword [ebp - 4]
cmp byte [edx + 0x30], 0
jne 0x5c165f
mov word [eax + 0x2c], 1
jmp OemToCharA
mov word [eax + 0x2c], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test byte [eax + 0x29], 1
je 0x5c1677
mov word [eax + 0x36], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test byte [eax + 0x29], 2
je 0x5c16a2
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
and edx, 0xffff
cmp edx, 0xffff
je 0x5c16a2
mov edx, dword [ebp - 4]
mov dx, word [edx + 0x40]
mov word [eax + 0x38], dx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.0042899c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push LockWindowUpdate
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
pop esi
pop ebx
pop ecx
pop ebp
ret