Function at 0x4b3630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56983e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov edx, 0x5bf874
lea ecx, [ebp - 0x28]
call fcn.0040e950
mov edi, eax
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x4b367d
mov edi, dword [edi]
mov eax, dword [0x61e854]
test eax, eax
jne 0x4b36c1
push 0x10
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0
mov dword [0x61e854], eax
push edi
mov ecx, eax
call fcn.0040fce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b36e5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
xor eax, eax
push eax
push eax
push eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call edi
test eax, eax
je 0x4b3783
nop dword [eax]
mov eax, dword [ebp - 0x48]
sub eax, 0x464
je 0x4b374f
sub eax, 1
je 0x4b3735
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4b3773
push dword [ebp - 0x44]
mov ecx, esi
call fcn.004b2b40
test al, al
je 0x4b3773
push dword [ebp - 0x44]
mov ecx, esi
call fcn.004b2d20
jmp 0x4b3773
push dword [ebp - 0x44]
mov ecx, esi
call fcn.004b2be0
test al, al
je 0x4b3773
push dword [ebp - 0x44]
mov ecx, esi
call fcn.004b2c80
test al, al
je 0x4b3773
push dword [ebp - 0x44]
call fcn.004b31e0
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call edi
test eax, eax
jne 0x4b3710
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov esi, dword [esi + 0x48]
cmp esi, dword [eax + 0x4c]
je 0x4b37c3
mov edi, eax
push dword [esi]
mov ecx, edi
call fcn.004b2be0
test al, al
je 0x4b37b8
push dword [esi]
call fcn.004b31e0
add esi, 4
cmp esi, dword [edi + 0x4c]
jne 0x4b37a4
mov edi, dword [ebp - 0x30]
mov esi, dword [0x61e854]
test esi, esi
jne 0x4b380b
push 0x10
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [ebp - 4], 2
mov dword [0x61e854], esi
mov eax, dword [esi]
test eax, eax
je 0x4b381e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x30]
mov dword [ecx + 0x34], eax
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x48]
mov dword [ecx + 0x4c], eax
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret