Function at 0x5848e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x648fa2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x7563bc]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 0x30], edi
call fcn.004faaa0
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.005c28a0
push 0x3c
call fcn.0061431c
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, edi
mov byte [esp + 0x30], 1
je 0x584954
mov ecx, esi
call fcn.00614e0d
mov dword [esi], vtable.CButton.0
mov dword [esp + 0x10], esi
jmp 0x58495a
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.00627ac2
test eax, eax
jne 0x5849c3
cmp esi, edi
je 0x58499c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00618d7e
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 0x5849ce
xor eax, eax
jmp 0x5849d1
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 0x584a0e
cmp eax, edi
je 0x584a03
push eax
call fcn.00614345
add esp, 4
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x6c], edi
jmp 0x584af9
cmp eax, edi
jne 0x584a46
lea edi, [ebx*4]
push edi
call fcn.0061431c
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 0x584af9
mov ecx, dword [ebp + 0x70]
cmp ebx, ecx
jg 0x584a64
cmp ebx, edx
jle 0x584a5c
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 0x584af9
mov eax, dword [ebp + 0x74]
cmp eax, edi
jne 0x584a8e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x584a82
mov eax, 4
jmp 0x584a8e
cmp eax, 0x400
jle 0x584a8e
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x3c], eax
jl 0x584a9c
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call fcn.0061431c
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.00614345
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.00618d7e
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