Function at 0x2040dd80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x2047fd9d
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x204a31e0]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov eax, dword [esp + 0x354]
mov ebx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xec]
push str.ADAPTERS
push eax
xor edi, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], edi
call fcn.20402090
add esp, 8
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x2040e244
push str.ADAPTER
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
call fcn.20402090
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x2040e244
lea ecx, [esp + 0x34]
push ecx
call fcn.2040c880
mov dword [esp + 0x34c], edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x140]
push eax
push str.ADAPTER_NAME
push ebp
mov esi, pe_nt_image_headers32
push ebx
mov byte [esp + 0x37], 0
mov dword [esp + 0x30], esi
call fcn.20401ec0
add esp, 0x14
cmp eax, 1
jne 0x2040de70
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [esp + 0x34]
push ecx
call fcn.2040c930
jmp 0x2040e224
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x34]
call fcn.2040d130
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x140]
push eax
push 0x20485800
push ebp
push ebx
mov dword [esp + 0x30], esi
call fcn.20401ec0
add esp, 0x14
cmp eax, 1
je 0x2040de56
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x34]
call fcn.2040d1d0
push str.ADDRESSES_UNICAST
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
mov esi, eax
add esp, 8
cmp esi, edi
je 0x2040e011
push str.IP_ADDR
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040df20
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xf0]
push ecx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040e270
mov byte [esp + 0x23], 1
push str.IP6_ADDR
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040df91
lea ebx, [ebx]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa0]
push edx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040df7b
lea eax, [esp + 0x9c]
push eax
lea edi, [esp + 0x38]
call fcn.2040d270
xor edi, edi
push str.IP6_ADDR
push esi
lea eax, [esp + 0x20]
call fcn.20402090
add esp, 8
cmp eax, edi
jne 0x2040df40
cmp byte [esp + 0x23], 0
je 0x2040e011
push str.SUBNET_MASK
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040e011
push str.IP_ADDR
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040e011
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa0]
push edx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040e287
lea edi, [esp + 0x9c]
lea eax, [esp + 0xec]
lea esi, [esp + 0x34]
call fcn.2040d0e0
xor edi, edi
push str.ADDRESSES_MULTICAST
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
mov esi, eax
add esp, 8
cmp esi, edi
je 0x2040e0a1
push str.IP6_ADDR
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040e0a1
jmp 0x2040e050
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa0]
push edx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040e08b
lea eax, [esp + 0x9c]
push eax
lea edi, [esp + 0x38]
call fcn.2040d2f0
xor edi, edi
push str.IP6_ADDR
push esi
lea eax, [esp + 0x20]
call fcn.20402090
add esp, 8
cmp eax, edi
jne 0x2040e050
push str.ADDRESSES_DNS
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x2040e1e1
push str.IP_ADDR
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040e172
nop
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa0]
push edx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040e158
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x20], edi
call fcn.20406360
movzx eax, al
cmp eax, edi
je 0x2040e158
mov eax, dword [esp + 0x88]
test eax, eax
mov ebx, eax
jl 0x2040e29e
lea edi, [eax + 1]
lea esi, [esp + 0x80]
call fcn.2040d940
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
mov dword [ecx + ebx*4], edx
mov ebx, dword [esp + 0x2c]
xor edi, edi
push str.IP_ADDR
push ebp
lea eax, [esp + 0x20]
call fcn.20402090
add esp, 8
cmp eax, edi
jne 0x2040e0e0
push str.IP6_ADDR
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.20402090
add esp, 8
cmp eax, edi
je 0x2040e1e1
lea esp, [esp]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa0]
push edx
push str.ADDRESS
push eax
push ebx
mov dword [esp + 0x30], 0x28
call fcn.20401ec0
add esp, 0x14
test eax, eax
jne 0x2040e1cb
lea eax, [esp + 0x9c]
push eax
lea edi, [esp + 0x38]
call fcn.2040d370
xor edi, edi
push str.IP6_ADDR
push ebp
lea eax, [esp + 0x20]
call fcn.20402090
add esp, 8
cmp eax, edi
jne 0x2040e190
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 8]
test edi, edi
jl 0x2040e29e
mov esi, dword [esp + 0x28]
lea ecx, [edi + 1]
call fcn.2040e430
imul edi, edi, 0x64
add edi, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
push edi
call fcn.2040ccc0
mov dword [esp + 0x34c], 0xffffffff
lea eax, [esp + 0x34]
push eax
call fcn.2040c930
xor edi, edi
mov ecx, dword [esp + 0x30]
push str.ADAPTER
push ecx
lea eax, [esp + 0x2c]
call fcn.20402090
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x2040de16
mov al, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.20478952
add esp, 0x33c
ret 4
mov dword [esp + 0x34c], 0xffffffff
lea edx, [esp + 0x34]
push edx
call fcn.2040c930
jmp 0x2040e224
mov dword [esp + 0x34c], 0xffffffff
lea eax, [esp + 0x34]
push eax
call fcn.2040c930
jmp 0x2040e224
call fcn.20477d24
int3