Function at 0x505830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x605f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x2cc]
push ebx
push ebx
push 0xf0
push eax
call edi
mov edx, dword [esi + 0x8c]
cmp eax, ebx
setne cl
mov byte [edx + 4], cl
mov eax, dword [esi + 0x290]
push ebx
push ebx
push 0xf0
push eax
call edi
mov edx, dword [esi + 0x8c]
cmp eax, ebx
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [0x6ca27c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x1c], ebx
cmp byte [eax + 0xc], bl
je 0x505907
lea ecx, [esp + 0xc]
push ebp
push ecx
lea ecx, [esi + 0x1fc]
call fcn.005de49e
mov edx, dword [esp + 0x10]
push edx
call fcn.005c4ec3
mov ecx, dword [esi + 0x8c]
lea eax, [eax + eax*2]
add esp, 4
lea edx, [esp + 0x10]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [ecx + 8], eax
push edx
lea ecx, [esi + 0x184]
call fcn.005de49e
mov eax, dword [esp + 0x10]
mov ebp, dword [esi + 0x8c]
push eax
call fcn.005c4ec3
mov ecx, dword [ebp + 8]
add esp, 4
add ecx, eax
mov dword [ebp + 8], ecx
pop ebp
jmp 0x50590a
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x344]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
lea ecx, [esp + 0xc]
setne dl
push ecx
lea ecx, [esi + 0x364]
mov byte [eax + 0x18], dl
call fcn.005de49e
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], ebx
je 0x50595b
mov edx, dword [esi + 0x8c]
push eax
add edx, 0x14
push 0x69ffbc
push edx
call fcn.005d9fbb
add esp, 0xc
jmp 0x505977
mov ecx, dword [esi + 0x8c]
push 0x6ce7c8
add ecx, 0x14
call fcn.005e1315
mov eax, dword [esi + 0x8c]
mov byte [eax + 0x18], bl
mov ecx, dword [esi + 0x3bc]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x2f], dl
mov ecx, dword [esi + 0x3f8]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x2e], dl
mov ecx, dword [esi + 0x434]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x2d], dl
mov ecx, dword [esi + 0x470]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x2c], dl
mov ecx, dword [esi + 0x560]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x1b], dl
mov ecx, dword [esi + 0x77c]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x19], dl
mov ecx, dword [esi + 0x740]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
mov eax, dword [esi + 0x8c]
setne dl
mov byte [eax + 0x1a], dl
mov ecx, dword [esi + 0x8c]
add ecx, 0x1c
push ecx
lea ecx, [esi + 0x4cc]
call fcn.005bd720
mov edx, dword [esi + 0x8c]
lea ecx, [esi + 0x490]
add edx, 0x20
push edx
call fcn.005bd720
mov eax, dword [esi + 0x8c]
add eax, 0x24
lea ecx, [esi + 0x508]
push eax
call fcn.005bd720
mov ecx, dword [esi + 0x8c]
push ebx
push ebx
push 0xf0
mov dword [ecx + 0x28], ebx
mov edx, dword [esi + 0x704]
push edx
call edi
cmp eax, ebx
je 0x505aae
mov eax, dword [esi + 0x8c]
inc dword [eax + 0x28]
mov eax, dword [esi + 0x614]
push ebx
push ebx
push 0xf0
push eax
call edi
cmp eax, ebx
je 0x505acc
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 2
mov ecx, dword [esi + 0x5d8]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
je 0x505aea
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 4
mov edx, dword [esi + 0x650]
push ebx
push ebx
push 0xf0
push edx
call edi
cmp eax, ebx
je 0x505b08
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 8
mov eax, dword [esi + 0x59c]
push ebx
push ebx
push 0xf0
push eax
call edi
cmp eax, ebx
je 0x505b26
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 0x10
mov ecx, dword [esi + 0x6c8]
push ebx
push ebx
push 0xf0
push ecx
call edi
cmp eax, ebx
je 0x505b44
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 0x20
mov edx, dword [esi + 0x68c]
push ebx
push ebx
push 0xf0
push edx
call edi
cmp eax, ebx
je 0x505b62
mov eax, dword [esi + 0x8c]
add dword [eax + 0x28], 0x40
mov eax, dword [esi + 0x8c]
push ebx
push ebx
push 0xf0
mov dword [eax + 0x10], ebx
mov ecx, dword [esi + 0xec]
push ecx
call edi
cmp eax, ebx
je 0x505bd2
mov edx, dword [0x6ca27c]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esi + 0x10c]
push eax
mov byte [esp + 0x20], 1
call fcn.005de49e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005c4e38
add esp, 4
test eax, eax
jle 0x505bc5
mov edx, dword [esp + 0x10]
push edx
call fcn.005c4e38
mov ecx, dword [esi + 0x8c]
add esp, 4
mov dword [ecx + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.005e118c
mov edx, dword [esi + 0xb0]
push ebx
push ebx
push 0xf0
push edx
call edi
mov ecx, dword [esi + 0x8c]
cmp eax, ebx
setne al
mov byte [ecx + 0x30], al
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret