Function at 0x4bdf30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54d318
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a9e98]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.00403c60
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ebx, dword [edi + 0xb0]
mov ecx, esi
call edx
xor ebp, ebp
cmp ebx, ebp
je 0x4bdf8d
cmp ebx, 1
je 0x4bdf8d
cmp ebx, 2
je 0x4bdf8d
cmp ebx, 8
jne 0x4be1e1
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.004b4db0
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.004aeb90
cmp eax, 1
je 0x4bdfb9
mov ecx, edi
call fcn.004aeb90
cmp eax, 3
jne 0x4be04a
call fcn.004fc960
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4bdfd3
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.0042e110
add esp, 0xc
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 0
jne 0x4be031
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4be1bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4be1bd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4be04a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00402b80
mov edi, dword [esp + 0x40]
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.004bae40
cmp eax, ebp
je 0x4be1bd
mov esi, dword [esp + 0x34]
push 1
push 0xf4b8
mov ecx, esi
mov dword [esp + 0x20], 0xf4b9
mov dword [esp + 0x24], esi
call fcn.004ef6f0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push esi
push edx
mov byte [esp + 0x34], 2
mov dword [esp + 0x40], ebp
call fcn.004ba860
add esp, 0xc
test eax, eax
jne 0x4be0ce
push 4
push 0xf4b9
mov ecx, esi
mov byte [esp + 0x30], al
call fcn.004ef6f0
jmp 0x4be1bd
lea ecx, [esp + 0x38]
call fcn.00402020
mov ecx, dword [esp + 0x34]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
lea edx, [esp + 0x3c]
push 0x56fb74
push edx
mov byte [esp + 0x34], 3
call fcn.0040c4c0
mov ebp, dword [esp + 0x44]
add esp, 8
add ebp, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
push ebp
call fcn.00402b80
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebx], eax
call fcn.0046ddf0
mov ebx, 1
lea ecx, [edi + 0xc]
mov dword [edi + 8], ebx
call fcn.00401f70
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], ebx
call fcn.00401f70
lea ecx, [esp + 0x34]
call fcn.00402020
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push 0xf4ba
push ecx
mov byte [esp + 0x34], 4
call fcn.0041b330
mov edi, dword [esp + 0x40]
add esp, 0xc
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.004ee320
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4be19e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4be1bd
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x28], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4be1e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc