Function at 0x45a5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fde18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x45a8a1
push 0x3d
push eax
call fcn.005d33c4
add esp, 8
test eax, eax
je 0x45a8a1
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45a8a1
mov eax, dword [ecx - 0xc]
lea esi, [ebx + 1]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
jl 0x45a705
cmp esi, eax
jge 0x45a705
lea eax, [ecx + esi*2]
push 0x2c
push eax
call fcn.005d33c4
add esp, 8
test eax, eax
je 0x45a705
sub eax, dword [ebp]
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x45a705
sub eax, ebx
sub eax, 1
push ebp
mov ecx, esi
lea edx, [esp + 0x28]
call fcn.00409f60
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0040ab90
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a6c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov edx, dword [esi - 0xc]
xor eax, eax
test edx, edx
jle 0x45a6ec
mov edi, edi
test eax, eax
jl 0x45a6fb
cmp eax, edx
jg 0x45a6fb
movzx ecx, word [esi + eax*2]
add ecx, 0xffffffd0
cmp cx, 9
ja 0x45a705
add eax, 1
cmp eax, edx
jl 0x45a6d0
push esi
call fcn.005d3c34
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x45a709
push 0x80070057
call fcn.00403650
mov dword [esp + 0x1c], ebx
mov eax, ebx
lea ecx, [esp + 0x24]
mov edx, ebp
call fcn.0041a270
mov byte [esp + 0x30], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x45a76d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45a760
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45a760
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45a757
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x45a76d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
call fcn.0045a530
test eax, eax
je 0x45a8a1
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.0040ab90
push 0x1b
call fcn.0040af90
mov ecx, dword [esp + 0x1c]
add ecx, 1
lea esi, [esp + 0x24]
mov edx, ebp
call fcn.00409f40
mov byte [esp + 0x30], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
push ecx
call fcn.0040aee0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a802
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.004c39a0
test eax, eax
jne 0x45a8a1
mov esi, dword [esp + 0x18]
push esi
mov ecx, ebx
call fcn.004c39a0
test eax, eax
jne 0x45a838
mov edx, dword [esp + 0x20]
push edx
mov eax, esi
call fcn.0045f410
jmp 0x45a83f
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov byte [esp + 0x30], 0
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 0x45a8c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a8ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret