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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462149
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
mov eax, dword [0x47fba0]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x204], eax
mov dword [esp + 0x84], esi
call fcn.0048d5ce
mov eax, dword [ebp + 8]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x218], edi
call fcn.0046f970
mov byte [esp + 0x214], 1
call 0x4bedba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 4
push 0x4659c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x21c], 2
call fcn.0046df70
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0048d661
cmp eax, edi
je 0x470d50
lea ecx, [esp + 0x30]
call fcn.0048d398
mov edx, dword [esp + 0x30]
push 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], eax
call dword [edx + 0x38]
test eax, eax
jne 0x470cd1
lea ecx, [esp + 0x30]
call fcn.0048d595
test eax, eax
jne 0x470cd1
mov eax, dword [esi + 0xe0]
push edi
push edi
push 0x1004
push eax
call dword [fcn.004644fc]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x34]
mov ebx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0048d7ea
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x218], 3
call fcn.0046a4b0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4705b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov edi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, edi
or eax, ecx
jge 0x4705e1
push edi
lea ecx, [esp + 0x14]
call fcn.00468840
mov edx, dword [esp + 0x10]
push edx
call fcn.00496a5f
add esp, 4
test edi, edi
jl 0x470dd8
mov eax, dword [esp + 0x10]
cmp edi, dword [eax - 8]
jg 0x470dd8
mov dword [eax - 0xc], edi
mov eax, dword [esp + 0x10]
mov byte [edi + eax], 0
mov eax, dword [esi + 0x370]
push eax
lea ecx, [esp + 0x6c]
call fcn.0046f820
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
add eax, edx
push eax
push ebx
lea ecx, [esi + 0xc4]
push 1
mov byte [esp + 0x230], 4
mov dword [esp + 0x38], ecx
call 0x4b934f
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47066e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x370]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], 2
call fcn.0046f820
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4706e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0xe0]
lea eax, [esp + 0x88]
push eax
push 0xffffffffffffffff
push 0x100d
push ecx
call dword [fcn.004644fc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x370]
push eax
lea ecx, [esp + 0x58]
call fcn.0046f820
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x10]
add eax, ecx
push 0x4657a4
push eax
call fcn.00496742
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x34]
call fcn.0048d889
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x218], 5
call fcn.0046a4b0
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47079f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x47084b
push 0x2e
push edi
call fcn.004969e4
add esp, 8
test eax, eax
je 0x47084b
sub eax, edi
cmp eax, 0xffffffff
je 0x47084b
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046e0d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x218], 6
call fcn.0046a4b0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x14]
push 0x4656b0
push edi
call fcn.00496742
add esp, 8
test eax, eax
je 0x47085b
push 0x4659b8
push edi
call fcn.00496742
add esp, 8
test eax, eax
je 0x47085b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0046a4b0
jmp 0x47085b
push 0
push 0x465498
lea ecx, [esp + 0x18]
call fcn.0046a0d0
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x3a8]
push ecx
mov ecx, ebx
call fcn.0046d6d0
test eax, eax
je 0x47087d
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x470973
xor eax, eax
mov ecx, 0x58
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
push 0x511
push 0x160
jne 0x4708bc
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xa8]
push ecx
push 0x80
push edx
jmp 0x4708cb
lea eax, [esp + 0xa8]
push eax
push 0x10
push 0x465498
call dword [0x488054]
mov edi, dword [esi + 0x39c]
mov ecx, dword [esi + 0x394]
lea eax, [edi + 1]
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [0x48801c]
mov edx, dword [esp + 0xa0]
mov eax, dword [esi + 0x394]
push edx
push edi
push eax
call dword [0x488018]
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0046f970
lea edx, [esp + 0x48]
push edx
lea ecx, [esi + 0x398]
mov byte [esp + 0x218], 7
call fcn.0046e000
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470951
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0046d6d0
test eax, eax
jne 0x470970
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0046fba0
jmp 0x470973
mov dword [eax + 4], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push edx
push 0
push 2
push 0
push eax
call 0x4b939b
lea ecx, [esp + 0x30]
call fcn.0048d3d2
add eax, 0x3ff
adc edx, 0
mov ebx, edx
mov edi, eax
push 3
shrd edi, ebx, 0xa
push 0x4659b4
lea ecx, [esp + 0x18]
shr ebx, 0xa
call fcn.0046a0d0
test ebx, ebx
jl 0x470b27
jg 0x4709e0
cmp edi, 0x3e8
jbe 0x470b27
jmp 0x4709e0
mov edi, dword [esp + 0x70]
lea ebx, [ebx]
push 0
push 0x3e8
push ebx
push edi
call fcn.00496c50
push ebx
push ecx
lea ecx, [esp + 0x1c]
push 0x4659ac
push ecx
mov esi, eax
mov edi, edx
call fcn.0047a0d0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x8c], esi
mov ebx, edi
call fcn.0046e100
add esp, 0x1c
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
lea edi, [eax - 0x10]
cmp edi, esi
mov byte [esp + 0x214], 8
mov dword [esp + 0x78], esi
je 0x470ade
mov ecx, dword [esi + 0xc]
test ecx, ecx
jl 0x470ad0
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x470ad0
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [edi + 0xc]
test edx, edx
lea ecx, [edi + 0xc]
jl 0x470a72
cmp eax, dword [edi]
jne 0x470a72
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x470ab0
mov ecx, dword [edi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
mov dword [esp + 0x24], eax
je 0x470dd3
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 4]
inc ecx
lea esi, [edi + 0x10]
lea edi, [eax + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x78]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470ac7
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x470ade
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0046a0d0
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470b04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
jg 0x4709d6
jl 0x470b1c
cmp dword [esp + 0x70], 0x3e8
ja 0x4709d6
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x84]
push ebx
push edi
lea eax, [esp + 0x1c]
push 0x4659a8
push eax
call fcn.0047a0d0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0046e100
add esp, 0x1c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x218], 9
call fcn.0046a4b0
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470b8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jne 0x470bb2
mov ecx, dword [esp + 0x10]
push ecx
push 1
push edi
mov ecx, ebx
call 0x4b92ad
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x39c]
jae 0x470dd8
mov edx, dword [esi + 0x398]
lea eax, [edx + eax*4]
mov eax, dword [eax]
push eax
push 2
push edi
mov ecx, ebx
call 0x4b92ad
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
call fcn.0048d531
lea ecx, [esp + 0x28]
push ecx
call fcn.004967d6
add esp, 4
test eax, eax
je 0x470c00
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x470c08
mov dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x28]
push eax
call fcn.004967d6
add esp, 4
test eax, eax
je 0x470c22
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
jmp 0x470c2a
mov dword [esp + 0x1c], 0xffffffff
lea edx, [esp + 0x28]
push edx
call fcn.004967d6
add esp, 4
test eax, eax
je 0x470c44
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
jmp 0x470c4c
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x28]
push ecx
call fcn.004967d6
add esp, 4
test eax, eax
je 0x470c67
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x24], eax
jmp 0x470c6f
mov dword [esp + 0x24], 0
lea edx, [esp + 0x28]
push edx
call fcn.004967d6
add esp, 4
test eax, eax
je 0x470c8a
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x470c8c
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
push eax
lea eax, [esp + 0x24]
push 0x465998
push eax
call fcn.0047a0d0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
push ecx
push 3
push edi
mov ecx, ebx
call 0x4b92ad
mov edx, dword [esp + 0x50]
push edx
push edi
mov ecx, ebx
call 0x4b964f
xor edi, edi
mov eax, dword [esp + 0x30]
push 2
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
jne 0x470d46
lea ecx, [esp + 0x30]
call fcn.0048d595
test eax, eax
jne 0x470d46
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [edx + 0x38]
test eax, eax
je 0x470d46
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x34]
call fcn.0048d7ea
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x218], 0xa
call fcn.00470480
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x214], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470d46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x60], edi
jne 0x470522
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x214], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470d76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x214], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470d9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x214], 0xffffffff
call fcn.0048d5f2
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x204]
call fcn.0049598e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00468620
push 0x80070057
call fcn.00467d90
int3