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

Disassembly:
push 0xffffffffffffffff
push 0x41b089
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esi + 4], eax
lea ebp, [esi + 8]
mov dword [esi], 0x41d238
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
lea ebx, [esi + 0x18]
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x30], 3
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
cmp edi, eax
je 0x402942
mov ecx, dword [esp + 0x40]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x402924
push 0x40
call fcn.00410e24
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x30], 4
je 0x402814
mov ecx, dword [esp + 0x18]
push 0
push 0x1000
push 0x80
push 1
push 1
push 3
push ecx
mov ecx, eax
call fcn.004089af
jmp 0x402816
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40282c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov edx, dword [ebp + 4]
test edx, edx
mov byte [esp + 0x30], 5
jne 0x40283c
xor ecx, ecx
jmp 0x402844
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x402876
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x402876
mov edx, dword [esp + 0x38]
mov esi, dword [ebp + 8]
push edx
push ebp
lea eax, [esp + 0x18]
push eax
mov edx, 1
mov ecx, esi
call fcn.00401ba0
add esi, 4
mov dword [ebp + 8], esi
jmp 0x402888
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00402040
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov esi, dword [ebx + 4]
test esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jne 0x4028a4
xor edi, edi
jmp 0x4028ac
mov edi, dword [ebx + 8]
sub edi, esi
sar edi, 3
test esi, esi
je 0x4028cc
mov ecx, dword [ebx + 0xc]
sub ecx, esi
sar ecx, 3
cmp edi, ecx
jae 0x4028cc
mov ecx, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add ecx, 8
mov dword [ebx + 8], ecx
jmp 0x4028de
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x20]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.004022f0
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [esp + 0x30], 3
je 0x402901
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x402901
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
add eax, 0x1c
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
xor eax, eax
jmp 0x4027b0
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.00402500
push edi
call fcn.004112ad
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10