Function at 0x45e940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47c230
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4eb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.00403490
mov edx, dword [0x4a540c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a540c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x487c28
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0045e540
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.00403060
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x490c74
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045e540
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00403060
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ea3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [0x47f298]
mov esi, dword [esp + 0x14]
push 0x486fbc
push esi
call ebp
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x45eb6d
cmp dword [esp + 0x20], 1
je 0x45eb0b
lea ecx, [esp + 0x1c]
push ecx
push 0x490c70
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045e540
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x30], 5
cmp eax, edi
je 0x45eadb
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x45eac9
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45eac9
push eax
call fcn.004015a0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45eac0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x45eadb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402b70
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45eb00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x20]
xor ebx, ebx
jmp 0x45ea45
mov edi, 0xc
mov ecx, dword [edi + 0x4909e4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403490
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45ebde
push eax
push esi
call ebp
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45eb5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45ebe8
add edi, 0xc
cmp edi, 0x24
jb 0x45eb10
mov edi, dword [esp + 0x38]
push 0x47fd68
mov ecx, edi
call fcn.004062c0
add esi, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45eb9e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ebc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push 0x80004005
call fcn.00401120
mov ebp, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045d820
mov edi, dword [esp + 0x20]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov byte [esp + 0x30], 4
jle 0x45ec1d
mov edx, ebx
push edx
lea ecx, [esp + 0x24]
call fcn.00401610
mov edi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
push ebx
mov ebx, dword [esp + 0x40]
mov ecx, ebp
sub ecx, eax
lea edx, [ecx + ebx - 1]
push edi
push edx
call fcn.004748d2
mov ecx, dword [esi - 0xc]
mov eax, dword [edi - 0xc]
sub eax, ecx
add eax, ebp
mov byte [eax + ebx - 1], 0
mov ebx, dword [esp + 0x44]
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00409450
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ec73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ec94
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ecbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x45ebc8