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

Disassembly:
push 0xffffffffffffffff
push 0x4b95e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x5f4f2c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00414410
push 0x4c34f4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x44], 2
call fcn.0042aba0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 0xc
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45424e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
ja 0x4542ba
mov eax, dword [esp + 0x24]
mov byte [esp + 0x38], bl
cmp eax, ebx
je 0x45427f
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0040b230
push ecx
push 4
push eax
call fcn.00493b84
push esi
call fcn.00474c17
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ebp
cmp eax, ebx
je 0x454457
add dword [eax + 4], ebp
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x454457
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp eax, 1
jne 0x45434e
push ecx
mov ecx, dword [esp + 0x48]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], esp
cmp eax, ebx
je 0x4542db
inc dword [eax + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
call fcn.00452100
mov eax, dword [esp + 0x2c]
add esp, 8
mov byte [esp + 0x38], bl
cmp eax, ebx
je 0x454313
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0040b230
push ecx
push 4
push eax
call fcn.00493b84
push esi
call fcn.00474c17
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ebp
cmp eax, ebx
je 0x454457
add dword [eax + 4], ebp
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x454457
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00449b80
test eax, eax
jne 0x4543cd
mov eax, dword [esp + 0x24]
mov byte [esp + 0x38], bl
cmp eax, ebx
je 0x454392
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0040b230
push edx
push 4
push eax
call fcn.00493b84
push esi
call fcn.00474c17
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ebp
cmp eax, ebx
je 0x454457
add dword [eax + 4], ebp
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x454457
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x14]
call fcn.0043edf0
add eax, 4
mov eax, dword [eax]
cmp eax, ebx
je 0x45443d
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00453e50
add esp, 0x10
test eax, eax
je 0x45443d
lea ecx, [esp + 0x1c]
call fcn.0043edf0
add eax, 4
cmp dword [eax], ebx
je 0x45443d
lea ecx, [esp + 0x44]
call fcn.0043ee20
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
lea ecx, [esp + 0x4c]
call fcn.0043c9a0
lea ecx, [esp + 0x20]
call fcn.0043edf0
mov ecx, eax
add ecx, 4
call fcn.0043c9d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.0040b550
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], ebp
call fcn.00405ae0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret