Function at 0x407ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
mov edx, dword [ebp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x60]
mov eax, edi
sar eax, 0x10
mov ecx, edi
and ecx, 0xffff
mov dword [esp + 0x28], eax
mov eax, dword [edx + eax*4]
mov dword [esp + 0x24], ecx
shl ecx, 5
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 0x64]
xor esi, esi
and eax, 0xffff
mov dword [ecx + 8], esi
lea ecx, [ebp + 4]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
call fcn.00401d70
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
push 6
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], esi
call fcn.004078b0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x44]
lea esi, [eax + edx*4]
push esi
push ecx
mov dword [esp + 0x20], esi
call fcn.00407170
add esp, 8
xor ecx, ecx
cmp eax, 1
mov dword [esp + 0x34], eax
jne 0x407ccd
mov eax, dword [ebp + 0x34]
cmp dword [ebp + 0x14], eax
jne 0x407b85
push 0
mov ecx, ebp
call fcn.00406330
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
lea edx, [edi + 1]
mov dword [ebp + 0x14], edx
jne 0x407b9a
mov dword [esp + 0x1c], edi
mov edx, dword [ebp + 0x30]
mov ecx, edi
sar ecx, 0x10
mov ebx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x60]
mov eax, edi
and eax, 0xffff
shl eax, 5
add eax, ebx
mov dword [eax + 0x10], ecx
mov edx, ecx
mov dword [eax + 0x18], 0
mov ebx, dword [ebp + 0x30]
sar edx, 0x10
mov edx, dword [ebx + edx*4]
and ecx, 0xffff
shl ecx, 5
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x407c34
mov edx, ecx
and ecx, 0xffff
shl ecx, 5
sar edx, 0x10
shl edx, 2
mov esi, dword [edx + ebx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + ecx + 0x1c]
mov esi, ecx
mov dword [esp + 0x34], ecx
and ecx, 0xffff
sar esi, 0x10
mov esi, dword [ebx + esi*4]
shl ecx, 5
mov dword [esi + ecx + 0x18], edi
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x30]
mov edx, dword [edx + ecx]
mov ecx, dword [esp + 0x2c]
mov dword [edx + ecx + 0x1c], edi
mov dword [eax + 0xc], 0
jmp 0x407c40
mov dword [edx], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0xc], 0x80000
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [eax + 0xc]
and edx, 0xffff0000
or ecx, edx
mov edx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [esi + 8]
and edx, 0xffd00000
add ecx, edx
mov dword [eax + 8], ecx
test dword [esi + 0xc], 0x10000
je 0x407c96
mov edi, dword [esp + 0x60]
and ecx, 0x2fffff
mov dword [eax + 8], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
jmp 0x407b45
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
inc esi
inc eax
cmp eax, ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], eax
jne 0x407b45
mov edx, ecx
lea eax, [edx + edx + 6]
push eax
lea ecx, [esp + 0x48]
call fcn.004078b0
jmp 0x407b45
test eax, eax
jne 0x407f57
mov ecx, dword [esp + 0x10]
mov eax, ecx
test eax, eax
mov dword [esp + 0x14], ecx
mov ebx, edi
je 0x407d9d
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x44]
lea ecx, [eax + edx*4 - 4]
mov dword [esp + 0x20], ecx
jmp 0x407d00
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov esi, dword [edx + 4]
sub esi, eax
inc esi
test byte [edx + 0x10], 8
push esi
push ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 0xc]
lea edx, [ecx + eax*2]
push edx
je 0x407d2c
call fcn.004154fa
jmp 0x407d31
call fcn.004154c5
add esp, 0xc
test eax, eax
jne 0x407d57
mov eax, dword [esp + 0x2c]
movzx esi, word [eax + esi*2]
test si, si
je 0x407d8d
push esi
push 0x435764
call fcn.004154a3
add esp, 8
test eax, eax
jne 0x407d8d
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 0x30]
mov ecx, ebx
and ebx, 0xffff
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
dec eax
sub esi, 0x14
shl ebx, 5
test eax, eax
mov ebx, dword [ecx + ebx + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
jne 0x407d00
jmp 0x407d99
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x407f14
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
shl eax, 5
lea eax, [edx + eax + 0xc]
or dword [eax], 0x800000
mov ecx, dword [ebp + 0x30]
mov eax, edi
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov edx, edi
and edx, 0xffff
shl edx, 5
mov ecx, dword [eax + edx + 0xc]
lea eax, [eax + edx + 0xc]
or ecx, 0x200000
mov dword [eax], ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx - 0xc]
test eax, eax
lea ebx, [ebp + 4]
jne 0x407e37
mov edx, dword [esp + 0x64]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00407930
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push ecx
push edx
push 0x435ab8
push ebx
mov byte [esp + 0x70], 1
call fcn.004035b0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407b45
mov ecx, eax
mov edx, dword [esp + 0x10]
cmp edx, ecx
jle 0x4080de
mov eax, dword [ebp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
mov esi, dword [esp + 0x24]
shl esi, 5
mov ebx, dword [eax + esi + 0xc]
lea eax, [eax + esi + 0xc]
or ebx, 0x800000
mov dword [eax], ebx
mov eax, edx
sub eax, ecx
sub edx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x30]
mov ecx, edi
sar ecx, 0x10
mov ebx, dword [edx + ecx*4]
mov esi, edi
and esi, 0xffff
shl esi, 5
mov eax, dword [esi + ebx + 8]
mov ecx, dword [esi + ebx + 0xc]
mov edx, dword [esi + ebx + 0x14]
add esi, ebx
mov ebx, dword [esi + 0x10]
and eax, 0x2fffff
or ecx, 0x100000
mov dword [esi + 8], eax
and eax, 0x2fffff
test ecx, 0x200000
mov dword [esp + 0x60], ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 4], eax
je 0x407f04
xor ecx, 0x200000
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x30]
mov eax, ebx
sar eax, 0x10
mov eax, dword [ecx + eax*4]
and ebx, 0xffff
shl ebx, 5
mov ecx, dword [eax + ebx + 0xc]
lea eax, [eax + ebx + 0xc]
mov ebx, dword [esp + 0x60]
or ecx, 0x200000
mov dword [eax], ecx
test edx, edx
je 0x40802c
mov ebp, dword [ebp + 0x30]
jmp 0x407fd0
mov ecx, dword [ebp + 0x30]
mov eax, ebx
sar eax, 0x10
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
and ebx, 0xffff
shl ebx, 5
mov ecx, dword [ebx + edx]
add ebx, edx
mov edx, dword [eax + 4]
sub edx, ecx
mov ecx, dword [ebx + 8]
add edx, esi
mov dword [ebx + 4], edx
mov eax, dword [eax + 8]
and ecx, 0x2fffff
shl eax, 0x16
add ecx, eax
mov dword [ebx + 8], ecx
jmp 0x407e37
cmp eax, 0xffffffff
jne 0x407fbc
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
shl eax, 5
lea eax, [edx + eax + 0xc]
or dword [eax], 0x800000
mov ecx, dword [ebp + 0x30]
mov eax, edi
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov edx, edi
and edx, 0xffff
shl edx, 5
mov ecx, dword [eax + edx + 0xc]
lea eax, [eax + edx + 0xc]
or ecx, 0x200000
mov dword [eax], ecx
mov edx, dword [ebp + 4]
mov eax, dword [edx - 0xc]
test eax, eax
lea ecx, [ebp + 4]
jne 0x407b45
add esi, 0x10
push esi
call fcn.00403890
jmp 0x407b45
cmp eax, 0xfffffffe
jne 0x407b45
jmp 0x407e45
mov ebp, dword [esp + 0x20]
mov edi, edi
mov eax, edx
mov ecx, edx
sar eax, 0x10
shl eax, 2
mov ebp, dword [eax + ebp]
and ecx, 0xffff
shl ecx, 5
mov dword [ecx + ebp + 0x10], ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + 0x30]
mov ebp, dword [eax + ebp]
mov dword [ecx + ebp + 0x1c], edi
mov ebx, dword [ebx + 0x30]
mov ebp, edi
sar ebp, 0x10
mov ebx, dword [ebx + ebp*4]
mov ebp, dword [esp + 0x30]
and edi, 0xffff
shl edi, 5
mov dword [ebx + edi + 0x18], edx
mov ebx, dword [esp + 0x60]
mov edi, edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x20], edx
mov edx, dword [eax + edx]
mov edx, dword [edx + ecx + 0x18]
test edx, edx
jne 0x407fca
mov ecx, dword [ebp + 4]
mov edx, dword [ecx - 0xc]
lea eax, [ebp + 4]
mov edi, ebx
mov ebx, dword [esp + 0x4c]
dec ebx
test edx, edx
mov dword [esp + 0x4c], ebx
jne 0x4080d4
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4080b4
mov edx, dword [esp + 0x64]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00407930
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [ebx + ebx*4]
mov edx, dword [ecx + edx*4 + 0x10]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [ecx]
dec edx
push edx
push eax
lea eax, [ebp + 4]
push 0x435a28
push eax
mov byte [esp + 0x78], 2
call fcn.004035b0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 0x20
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4080d4
mov edx, dword [esp + 0x44]
lea ecx, [ebx + ebx*4]
lea ecx, [edx + ecx*4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x10]
push edx
push ecx
push 0x4359e0
push eax
call fcn.004035b0
add esp, 0x10
dec dword [esp + 0x2c]
jne 0x407e80
cmp dword [esp + 0x34], 0xfffffffe
je 0x408118
mov eax, dword [ebp + 0x30]
mov edx, edi
and edi, 0xffff
sar edx, 0x10
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x10]
shl edi, 5
mov edi, dword [ecx + edi + 0x10]
mov ecx, dword [esp + 0x4c]
dec ecx
dec eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], eax
jmp 0x407b45
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x58], 0xffffffff
je 0x408145
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x402800
push edx
push 0x14
push eax
call fcn.004144c9
push esi
call fcn.00427262
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8