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

Disassembly:
push 0xffffffffffffffff
push 0x45e9a6
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x88]
xor eax, eax
push eax
push 1
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x94]
mov ebx, dword [esp + 0x8c]
push 1
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x90], eax
call dword [0x46b8cc]
mov eax, dword [0x46a704]
mov ecx, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x8c], eax
mov edx, ecx
lock xadd dword [eax], edx
push esi
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x1c]
push edi
call dword [0x46be64]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call fcn.0043caa0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
je 0x407902
mov edx, dword [eax]
cmp edx, 1
je 0x40759c
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x90]
call fcn.0043c0a0
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 8]
lea ecx, [eax + edx*4 + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
cmp eax, 1
je 0x4075cf
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x90]
call fcn.0043c0a0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 8]
lea ebp, [eax + ecx*4 + 0x14]
mov eax, dword [ebp]
push eax
call fcn.0045dcd6
add esp, 4
push ebp
lea ecx, [esp + 0x90]
call dword [0x46a6d0]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x1c]
lea ebp, [edi - 1]
test ebp, ebp
jl 0x4076b4
test esi, esi
jl 0x4076b4
cmp ebp, dword [ecx + 0x14]
jge 0x4076b4
cmp esi, dword [ecx + 0x18]
jge 0x4076b4
push esi
push ebp
call dword [0x46be64]
mov edx, dword [eax]
mov ecx, dword [esp + 0x88]
cmp edx, dword [ecx]
jne 0x4076b4
mov dl, byte [eax + 4]
cmp dl, byte [ecx + 4]
jne 0x4076b4
mov dl, byte [eax + 5]
cmp dl, byte [ecx + 5]
jne 0x4076b4
mov al, byte [eax + 6]
cmp al, byte [ecx + 6]
jne 0x4076b4
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
call dword [0x46b8e0]
test al, al
jne 0x4076b4
push 0
push 1
push 1
push esi
push ebp
lea ecx, [esp + 0x30]
call dword [0x46b8cc]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 2
call dword [0x46b8d0]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 1
call dword [0x46b8ec]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
call fcn.0043caa0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
lea ebp, [edi + 1]
test ebp, ebp
jl 0x407773
test esi, esi
jl 0x407773
cmp ebp, dword [ecx + 0x14]
jge 0x407773
cmp esi, dword [ecx + 0x18]
jge 0x407773
push esi
push ebp
call dword [0x46be64]
mov ecx, dword [eax]
mov edx, dword [esp + 0x88]
cmp ecx, dword [edx]
jne 0x407773
mov cl, byte [eax + 4]
cmp cl, byte [edx + 4]
jne 0x407773
mov cl, byte [eax + 5]
cmp cl, byte [edx + 5]
jne 0x407773
mov al, byte [eax + 6]
mov ecx, edx
cmp al, byte [ecx + 6]
jne 0x407773
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], esi
call dword [0x46b8e0]
test al, al
jne 0x407773
push 0
push 1
push 1
push esi
push ebp
lea ecx, [esp + 0x34]
call dword [0x46b8cc]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 3
call dword [0x46b8d0]
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 1
call dword [0x46b8ec]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
call fcn.0043caa0
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x1c]
lea ebp, [esi - 1]
test edi, edi
jl 0x407832
test ebp, ebp
jl 0x407832
cmp edi, dword [ecx + 0x14]
jge 0x407832
cmp ebp, dword [ecx + 0x18]
jge 0x407832
push ebp
push edi
call dword [0x46be64]
mov edx, dword [eax]
mov ecx, dword [esp + 0x88]
cmp edx, dword [ecx]
jne 0x407832
mov dl, byte [eax + 4]
cmp dl, byte [ecx + 4]
jne 0x407832
mov dl, byte [eax + 5]
cmp dl, byte [ecx + 5]
jne 0x407832
mov dl, byte [eax + 6]
mov eax, ecx
cmp dl, byte [eax + 6]
jne 0x407832
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
call dword [0x46b8e0]
test al, al
jne 0x407832
push 0
push 1
push 1
push ebp
push edi
lea ecx, [esp + 0x38]
call dword [0x46b8cc]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 4
call dword [0x46b8d0]
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 1
call dword [0x46b8ec]
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
call fcn.0043caa0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
inc esi
test edi, edi
jl 0x4078ef
test esi, esi
jl 0x4078ef
cmp edi, dword [ecx + 0x14]
jge 0x4078ef
cmp esi, dword [ecx + 0x18]
jge 0x4078ef
push esi
push edi
call dword [0x46be64]
mov ecx, dword [eax]
mov edx, dword [esp + 0x88]
cmp ecx, dword [edx]
jne 0x4078ef
mov cl, byte [eax + 4]
cmp cl, byte [edx + 4]
jne 0x4078ef
mov cl, byte [eax + 5]
cmp cl, byte [edx + 5]
jne 0x4078ef
mov al, byte [eax + 6]
mov ecx, edx
cmp al, byte [ecx + 6]
jne 0x4078ef
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
call dword [0x46b8e0]
test al, al
jne 0x4078ef
push 0
push 1
push 1
push esi
push edi
lea ecx, [esp + 0x3c]
call dword [0x46b8cc]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 5
call dword [0x46b8d0]
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call dword [0x46b8ec]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], esi
call fcn.0043caa0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jne 0x40757e
mov byte [esp + 0x7c], 0
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x407924
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x90]
call fcn.0043c050
mov eax, ebx
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc