Function at 0x54c880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x610c32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x7815b4]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 0x30], edi
call fcn.004c26e0
mov ecx, dword [esp + 0x38]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call dword [edx + 8]
push eax
call fcn.0055c6a0
push 0x3c
call fcn.005dec8c
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, edi
mov byte [esp + 0x30], 1
je 0x54c8f4
mov ecx, esi
call fcn.005df77b
mov dword [esi], vtable.CButton.0
mov dword [esp + 0x10], esi
jmp 0x54c8fa
mov dword [esp + 0x10], edi
mov esi, edi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
push 0x50010000
push ecx
mov ecx, esi
mov byte [esp + 0x44], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.005f1f2d
test eax, eax
jne 0x54c963
cmp esi, edi
je 0x54c93c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.005e3750
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
lea eax, [ebp + 0x7c]
cmp eax, edi
jne 0x54c96e
xor eax, eax
jmp 0x54c971
mov eax, dword [eax + 4]
push ebx
push edi
push eax
mov eax, dword [esi + 0x1c]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
mov esi, edx
mov dword [esp + 0x18], esi
lea ebx, [esi + 1]
cmp ebx, edi
jne 0x54c9ae
cmp eax, edi
je 0x54c9a3
push eax
call fcn.005decb5
add esp, 4
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x6c], edi
jmp 0x54ca99
cmp eax, edi
jne 0x54c9e6
lea edi, [ebx*4]
push edi
call fcn.005dec8c
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x68], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x6c], ebx
jmp 0x54ca99
mov ecx, dword [ebp + 0x70]
cmp ebx, ecx
jg 0x54ca04
cmp ebx, edx
jle 0x54c9fc
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 0x6c], ebx
jmp 0x54ca99
mov eax, dword [ebp + 0x74]
cmp eax, edi
jne 0x54ca2e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x54ca22
mov eax, 4
jmp 0x54ca2e
cmp eax, 0x400
jle 0x54ca2e
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x3c], eax
jl 0x54ca3c
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call fcn.005dec8c
mov ecx, dword [ebp + 0x6c]
mov esi, dword [ebp + 0x68]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x44], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x6c]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x68]
push eax
call fcn.005decb5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ecx
mov edx, dword [ebp + 0x68]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
mov dword [edx + esi*4], eax
call fcn.005e3750
mov ecx, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8