Function at 0x49ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e8cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
call fcn.0049f010
mov edx, dword [esi + 0x24]
lea ebp, [esi + 0x24]
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 8]
jne 0x49eff6
test byte [esi + 0x10], 1
je 0x49eff6
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
je 0x49eff6
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x49ed28
cmp ecx, 0xffffffff
je 0x49ed28
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 0x4ed20c
push 1
push ecx
mov eax, esp
mov byte [esp + 0x4c], 1
mov ecx, 0x3a
mov word [eax], cx
lea ecx, [esp + 0x24]
call fcn.0041d360
test al, al
je 0x49ed7e
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.0041ac80
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x24]
mov dword [eax], edx
call fcn.00467a00
mov dword [esp + 0x20], 0x55f18c
lea eax, [esp + 0x1c]
mov byte [esp + 0x44], 2
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0049ea10
add esp, 8
mov eax, dword [esi + 0xc]
xor ebx, ebx
or edi, 0xffffffff
mov byte [esp + 0x44], 3
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x49ef3d
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
add eax, ebx
mov esi, dword [ecx + eax*4 + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004a07c0
test al, al
je 0x49ee22
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
je 0x49ee22
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0049cc60
test al, al
jne 0x49ef27
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.00401af0
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004658f0
jmp 0x49ef27
lea ecx, [esp + 0x2c]
call fcn.0045b4b0
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x48], 4
push eax
mov ecx, esi
call fcn.0049f910
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 3
mov edi, eax
call fcn.0045b510
cmp edi, 0xffffffff
je 0x49ef24
push edi
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0049e860
mov esi, dword [esp + 0x24]
xor edi, edi
mov byte [esp + 0x44], 5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, ecx
test eax, eax
jle 0x49eed9
lea ebx, [ebx]
lea eax, [ecx + 4]
add eax, edi
lea ecx, [esp + 0x18]
lea eax, [esi + eax*4]
push eax
call fcn.004178d0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0049cc60
test al, al
jne 0x49eec8
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.00401af0
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004658f0
mov esi, dword [esp + 0x24]
inc edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, ecx
cmp edi, eax
jl 0x49ee80
mov eax, dword [esi]
or edi, 0xffffffff
mov byte [esp + 0x44], 3
test eax, eax
je 0x49eefc
cmp eax, edi
je 0x49ef27
mov eax, edi
lock xadd dword [esi], eax
setne al
test al, al
jne 0x49ef27
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x24]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.00402f00
push esi
call fcn.004bee90
add esp, 4
jmp 0x49ef27
or edi, 0xffffffff
mov esi, dword [esp + 0x30]
inc ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp ebx, ecx
jl 0x49edb8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
test ecx, ecx
je 0x49ef5d
cmp ecx, 0xffffffff
je 0x49ef6a
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49ef6a
mov eax, dword [esp + 0x28]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
lea edx, [ecx + 8]
mov byte [esp + 0x44], 1
test eax, eax
je 0x49ef93
cmp eax, 0xffffffff
je 0x49ef9d
mov eax, edi
lock xadd dword [edx], eax
setne al
test al, al
jne 0x49ef9d
mov ecx, dword [esp + 0x20]
push 0x43ebc0
call fcn.00463550
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x49efbd
cmp ecx, 0xffffffff
je 0x49efca
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49efca
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x49efe9
cmp ecx, 0xffffffff
je 0x49eff6
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x49eff6
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret