Function at 0x40e2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476540
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4eb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4a540c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a540c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x4a540c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x4a540c
mov dword [esp + 0x30], ebx
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
mov byte [esp + 0x3c], 1
mov dword [esp + 0x28], ebx
call fcn.0040d250
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x40e5bd
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jle 0x40e5bd
push esi
mov edi, esi
push 4
mov dword [esp + 0x2c], edi
call dword [0x47f390]
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40e4a5
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call fcn.0040d250
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40e3aa
push ebp
call dword [0x47f370]
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0044e330
lea ecx, [esp + 0x18]
call fcn.0044e330
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
jle 0x40e4a5
mov eax, dword [str.Model_Name]
mov edi, dword [ebp + ebx*4]
lea edx, [esp + 0x18]
push edx
push eax
push edi
call fcn.0040dd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e50b
mov edx, dword [str.DEVICEKEY]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.0040dd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e50b
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e030
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x40], 2
call fcn.0040e030
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00404410
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e44d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404050
test eax, eax
jne 0x40e475
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.00404050
test eax, eax
je 0x40e578
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e49a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x40e3b2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
call dword [0x47f370]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [ebp + ebx*4]
mov edx, dword [esp + 0x40]
push ebp
mov dword [edx], ecx
call dword [0x47f370]
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0044e330
lea ecx, [esp + 0x14]
call fcn.0044e330
lea ecx, [esp + 0x18]
call fcn.0044e330
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea eax, [ebp - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e606
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret