Function at 0x52c140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668042
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x77bb1c]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 0x30], edi
call fcn.0049c180
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.0049c7b0
push 0x3c
call fcn.0061d6a5
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, edi
mov byte [esp + 0x30], 1
je 0x52c1b4
mov ecx, esi
call fcn.0061e22d
mov dword [esi], vtable.CButton.0
mov dword [esp + 0x10], esi
jmp 0x52c1ba
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.006328c2
test eax, eax
jne 0x52c223
cmp esi, edi
je 0x52c1fc
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00622566
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 0x52c22e
xor eax, eax
jmp 0x52c231
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 0x52c26e
cmp eax, edi
je 0x52c263
push eax
call fcn.0061d6ce
add esp, 4
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x6c], edi
jmp 0x52c359
cmp eax, edi
jne 0x52c2a6
lea edi, [ebx*4]
push edi
call fcn.0061d6a5
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 0x52c359
mov ecx, dword [ebp + 0x70]
cmp ebx, ecx
jg 0x52c2c4
cmp ebx, edx
jle 0x52c2bc
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 0x52c359
mov eax, dword [ebp + 0x74]
cmp eax, edi
jne 0x52c2ee
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x52c2e2
mov eax, 4
jmp 0x52c2ee
cmp eax, 0x400
jle 0x52c2ee
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x3c], eax
jl 0x52c2fc
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call fcn.0061d6a5
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.0061d6ce
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.00622566
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