Function at 0x4bef00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542748
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5ac020]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
push 0
push 1
call fcn.004db5d0
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 0x14]
call fcn.004e2f20
mov edi, eax
test edi, edi
je 0x4bf057
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 2
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebx
cmp dword [edi + 0xc], 0
je 0x4bf045
cmp dword [0x5be2b0], 0
je 0x4bf045
push 0x5bf730
push dword [edi + 0x10]
mov ecx, 0x5be2ac
call fcn.004a72e0
test eax, eax
je 0x4bf045
cmp word [0x5bf778], 0
jne 0x4befd6
xor eax, eax
jmp 0x4befef
mov eax, 0x5bf778
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4befe0
sub eax, edx
sar eax, 1
push eax
push 0x5bf778
lea ecx, [esp + 0x38]
call fcn.00401f10
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
mov ecx, dword [esi + 0xc]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.00495bd0
mov edx, eax
cmp edx, 0xffffffff
je 0x4bf045
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x164]
sub ecx, dword [eax + 0x160]
sar ecx, 2
cmp edx, ecx
jae 0x4bf045
mov eax, dword [eax + 0x160]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4bf045
mov dword [eax], 1
mov ecx, dword [esi + 0x14]
call fcn.004e3150
mov edi, eax
test edi, edi
jne 0x4bef88
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0xf0]
mov eax, dword [edi + 0xf4]
cmp ecx, 0xffffffff
jne 0x4bf073
cmp eax, ecx
je 0x4bf1c4
push eax
push ecx
mov ecx, edi
call fcn.004e29a0
test eax, eax
je 0x4bf1c4
mov edx, dword [edi + 0xf4]
cmp edx, 0xffffffff
je 0x4bf1c4
mov ecx, dword [edi + 0xf0]
cmp ecx, 0xffffffff
je 0x4bf1c4
mov eax, dword [edi]
push edx
push ecx
mov ecx, edi
call dword [eax + 0xb4]
mov edi, eax
test edi, edi
je 0x4bf1c4
cmp dword [edi + 8], 6
je 0x4bf16a
cmp dword [edi + 0xc], 0
je 0x4bf14b
cmp dword [0x5be2b0], 0
je 0x4bf137
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.004bf710
test eax, eax
je 0x4bf137
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
mov ecx, dword [esi + 0xc]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.00495bd0
mov ecx, dword [esi + 0xc]
push eax
call fcn.004daf50
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
mov ecx, dword [esi + 0x10]
cmovae eax, dword [esp + 0x30]
push 1
push dword [edi + 0x10]
push eax
call fcn.0049a8a0
mov ecx, dword [esi + 0x10]
push eax
call fcn.0049adc0
test eax, eax
jne 0x4bf137
mov ecx, dword [esi + 0x10]
call fcn.0049aea0
mov eax, dword [0x5be230]
push 1
mov ecx, dword [eax + 0xbc]
call fcn.004622a0
jmp 0x4bf1c4
push ecx
push dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
call fcn.0049abc0
mov ecx, dword [esi + 0x10]
cmp eax, dword [ecx + 0x1e4]
je 0x4bf132
push eax
call fcn.0049adc0
jmp 0x4bf137
mov eax, dword [0x5be230]
push 0
mov ecx, dword [eax + 0xbc]
call fcn.004622a0
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x1e4]
call fcn.0049adf0
test eax, eax
je 0x4bf1c4
cmp dword [eax], 1
jne 0x4bf1c4
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4bf19e
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00495bd0
mov edi, eax
cmp edi, 0xffffffff
je 0x4bf1c4
mov ecx, dword [esi + 0xc]
push 0
push 1
push edi
call fcn.004db450
mov ecx, dword [esi + 0xc]
push edi
call fcn.004daf50
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x4bf1ef
push dword [esp + 0x30]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret