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

Disassembly:
push 0xffffffffffffffff
push 0x4a5c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x38]
push esi
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], ebx
call fcn.004022c0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.00402060
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004951e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push ecx
lea ebp, [edi - 0x10]
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
mov byte [esp + 0x40], 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebp
call fcn.004015e0
mov ecx, dword [esp + 0x30]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004073f0
cmp eax, ebx
jne 0x407d37
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x2c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407d20
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
push 0x4af0bc
push edi
call fcn.0047f502
add esp, 8
cmp eax, ebx
je 0x407eea
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x407eea
mov eax, dword [esp + 0x38]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x18]
jge 0x407eea
call fcn.004951e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
cmp esi, ebx
mov byte [esp + 0x2c], 3
jl 0x407f5e
cmp esi, dword [edi - 0xc]
jg 0x407f5e
movzx eax, word [edi + esi*2]
push eax
lea ecx, [esp + 0x18]
push 0x4af0a4
push ecx
call fcn.004022f0
mov ebp, dword [esp + 0x20]
add esp, 0xc
cmp ebp, ebx
lea eax, [esi + 1]
je 0x407ea6
cmp eax, ebx
mov ecx, dword [edi - 0xc]
jl 0x407ea6
cmp eax, ecx
jg 0x407ea6
lea eax, [edi + eax*2]
push ebp
push eax
call fcn.0047e729
add esp, 8
cmp eax, ebx
je 0x407ea6
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x407ea6
lea eax, [esi - 1]
cmp eax, ebx
jl 0x407f5e
cmp eax, dword [edi - 0xc]
jg 0x407f5e
cmp word [edi + eax*2], 0x5c
je 0x407db1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea edi, [esi + edx]
cmp edi, eax
jle 0x407ed8
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004022c0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 4
call fcn.00402060
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.004017e0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push edi
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00401990
mov ecx, dword [esp + 0x2c]
call fcn.004073f0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004017e0
lea ecx, [esp + 0x10]
call fcn.004017e0
lea ecx, [esp + 0x34]
call fcn.004017e0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
lea ecx, [esp + 0x14]
call fcn.004017e0
lea ecx, [esp + 0x10]
call fcn.004017e0
lea ecx, [esp + 0x34]
call fcn.004017e0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.004017e0
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x40]
push eax
call fcn.00402060
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x2c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407f44
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
push 0x80070057
call fcn.00401100
int3