Function at 0x4dde30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3d88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.004cbda0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
xor esi, esi
mov dword [ebp + 8], esi
mov dword [eax], eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x4c]
push edx
mov dword [eax + 8], eax
call fcn.00404460
push esi
mov dword [esp + 0x40], esi
call fcn.0057abc7
mov esi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x5fcd20
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
lea edi, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004035d0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
push 0x5bcc3c
xor ebx, ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x28], esi
call fcn.00404050
mov ecx, edi
push ecx
mov ecx, ebp
call fcn.004cb550
mov edi, eax
lea eax, [esp + 0x20]
call fcn.004035d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [edi + 8], eax
mov dword [edi + 4], edx
add edi, 0xc
lea eax, [esp + 0x2c]
call fcn.004035d0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4ddfa5
push 0x5ca35c
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4ddfa5
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4ddfa5
cmp dword [ecx - 0xc], ebx
jge 0x4ddf5d
or eax, 0xffffffff
jmp 0x4ddf7a
push 0x5ca35c
push ecx
call fcn.0057880c
add esp, 8
test eax, eax
jne 0x4ddf74
or eax, 0xffffffff
jmp 0x4ddf7a
sub eax, dword [esp + 0x4c]
sar eax, 1
mov ecx, eax
lea esi, [esp + 0x18]
lea edx, [esp + 0x4c]
call fcn.00403540
lea edi, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.004035d0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
jmp 0x4de0b0
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4de061
push 0x5ca360
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4de061
sub eax, ecx
sar eax, 1
jne 0x4de061
mov ecx, 7
lea esi, [esp + 0x18]
lea edx, [esp + 0x4c]
call fcn.00403540
lea edi, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.004035d0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4de019
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, 0x5bcc3c
lea edi, [esp + 0x2c]
mov dword [esp + 0x24], ecx
call fcn.004040f0
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.004cb550
mov edi, eax
lea eax, [esp + 0x20]
call fcn.004035d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
jmp 0x4de0f1
cmp dword [ecx - 0xc], ebx
jl 0x4de083
push 0x5ca35c
push ecx
call fcn.0057880c
add esp, 8
test eax, eax
je 0x4de083
sub eax, dword [esp + 0x4c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4de0fd
lea eax, [esp + 0x1c]
push 0x5ca360
push eax
lea ecx, [esp + 0x54]
call fcn.0043bdd0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.004035d0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4de0cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004cb550
mov edi, eax
lea eax, [esp + 0x20]
call fcn.004035d0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [edi + 8], eax
mov dword [edi + 4], edx
lea eax, [esp + 0x2c]
add edi, 0xc
call fcn.004035d0
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4de122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4de142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4de16a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret