Function at 0x404340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42fb11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.00428690
push fcn.004253d4
push 0x404a30
push 0x18
lea eax, [esp + 0x34]
push 4
push eax
mov dword [esp + 0xa4], 0
call fcn.004148e2
mov eax, dword [0x43ce7c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea ecx, [esi + 0x560]
lea edx, [esp + 8]
push ecx
push str._sEEPROM.dat
push edx
mov byte [esp + 0x9c], 3
call fcn.00422dfe
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x18]
push 0
push 0x1001
push eax
call fcn.004287a2
test eax, eax
jne 0x40444b
push eax
push eax
push str.Failed_to_open_file_EEPROM.dat___r_n
call fcn.0042ad29
lea ecx, [esp + 8]
mov byte [esi + 0x768], 0
mov byte [esp + 0x90], 2
call fcn.004253d4
lea ecx, [esp + 4]
mov byte [esp + 0x90], 1
call fcn.004253d4
push fcn.004253d4
push 0x18
lea ecx, [esp + 0x30]
push 4
push ecx
mov byte [esp + 0xa0], 0
call fcn.00414804
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.004286e5
pop esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
add esp, 0x90
ret
mov edx, dword [esp + 0x18]
push ebx
push edi
push 0
push 0
lea ecx, [esp + 0x28]
call dword [edx + 0x28]
mov eax, dword [esi + 0x4b0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push eax
call edi
push eax
lea ecx, [esp + 0x34]
push 0x43c274
push ecx
call fcn.00422dfe
mov edx, dword [esi + 0x4d0]
lea eax, [esp + 0x40]
push edx
push 0x43c274
push eax
call fcn.00422dfe
mov ecx, dword [esi + 0x4f4]
lea edx, [esp + 0x50]
push ecx
push 0x43c274
push edx
call fcn.00422dfe
add esp, 0x24
lea eax, [esi + 0x4e0]
lea ecx, [esp + 0x3c]
push eax
call fcn.004254c9
lea eax, [esi + 0x4e4]
lea ecx, [esp + 0x40]
push eax
call fcn.004254c9
mov eax, dword [esi + 0x474]
push 0
push 0
push 0x147
push eax
call edi
push eax
lea ecx, [esp + 0x48]
push 0x43c274
push ecx
call fcn.00422dfe
add esp, 0xc
lea eax, [esi + 0x4e8]
lea ecx, [esp + 0x48]
push eax
call fcn.004254c9
lea eax, [esi + 0x4ec]
lea ecx, [esp + 0x4c]
push eax
call fcn.004254c9
mov edx, dword [esi + 0x438]
push 0
push 0
push 0x147
push edx
call edi
push eax
lea eax, [esp + 0x54]
push 0x43c274
push eax
call fcn.00422dfe
add esp, 0xc
lea eax, [esi + 0x4f0]
lea ecx, [esp + 0x54]
push eax
call fcn.004254c9
lea eax, [esi + 0x4d4]
lea ecx, [esp + 0x58]
push eax
call fcn.004254c9
lea eax, [esi + 0x4d8]
push eax
lea ecx, [esp + 0x60]
call fcn.004254c9
lea eax, [esi + 0x4dc]
lea ecx, [esp + 0x60]
push eax
call fcn.004254c9
mov ecx, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 2
jne 0x4045b8
lea edx, [esi + 0x500]
lea ecx, [esp + 0x64]
push edx
call fcn.004254c9
lea eax, [esi + 0x50c]
lea ecx, [esp + 0x68]
push eax
call fcn.004254c9
mov bl, 0x17
jmp 0x4045bc
mov bl, byte [esp + 0x17]
mov ecx, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push ecx
call edi
test eax, eax
jne 0x4045f4
lea edx, [esi + 0x4f8]
lea ecx, [esp + 0x64]
push edx
call fcn.004254c9
lea eax, [esi + 0x508]
lea ecx, [esp + 0x68]
push eax
call fcn.004254c9
mov bl, 0x14
lea eax, [esi + 0x514]
lea ecx, [esp + 0x6c]
push eax
call fcn.004254c9
mov ecx, dword [esi + 0x510]
lea edx, [esp + 0x70]
push ecx
push 0x43c274
push edx
call fcn.00422dfe
xor eax, eax
lea ecx, [esp + 0x80]
mov al, byte [esi + 0x76c]
push eax
push 0x43c274
push ecx
call fcn.00422dfe
xor edx, edx
lea eax, [esp + 0x90]
mov dl, byte [esi + 0x76d]
push edx
push 0x43c274
push eax
call fcn.00422dfe
xor ecx, ecx
lea edx, [esp + 0xa0]
mov cl, byte [esi + 0x76e]
push ecx
push 0x43c274
push edx
call fcn.00422dfe
mov eax, dword [esi + 0x4b0]
add esp, 0x30
push 0
push 0
push 0x147
push eax
call edi
cmp eax, 2
jne 0x4046d3
mov ecx, dword [esi + 0x524]
lea edx, [esp + 0x80]
push ecx
push 0x43c274
push edx
call fcn.00422dfe
mov eax, dword [esi + 0x528]
lea ecx, [esp + 0x90]
push eax
push 0x43c274
push ecx
call fcn.00422dfe
mov edx, dword [esi + 0x52c]
lea eax, [esp + 0xa0]
push edx
push 0x43c274
push eax
call fcn.00422dfe
add esp, 0x24
mov ecx, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 2
jne 0x4046fa
lea edx, [esi + 0x530]
lea ecx, [esp + 0x8c]
push edx
jmp 0x40471e
mov eax, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push eax
call edi
test eax, eax
jne 0x404723
lea ecx, [esi + 0x530]
push ecx
lea ecx, [esp + 0x84]
call fcn.004254c9
movsx eax, bl
test eax, eax
jle 0x4047a1
push ebp
mov dword [esp + 0x1c], str.____Device_Select_r_n
lea ebx, [esp + 0x34]
mov dword [esp + 0x20], eax
push 0x22
lea ecx, [esp + 0x14]
call fcn.004256b9
push ebx
lea ecx, [esp + 0x14]
call fcn.004256ce
push 0x22
lea ecx, [esp + 0x14]
call fcn.004256b9
mov edx, dword [ebx]
mov eax, dword [edx - 8]
cmp eax, 0x22
jge 0x40477d
mov ebp, 0x22
sub ebp, eax
push 0x43bfe8
lea ecx, [esp + 0x14]
call fcn.00425692
dec ebp
jne 0x40476c
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ebp
call fcn.00425692
mov eax, dword [esp + 0x20]
add ebx, 4
add ebp, 0x64
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jne 0x40473b
pop ebp
mov eax, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push eax
call edi
cmp eax, 2
jne 0x404808
push 0x22
lea ecx, [esp + 0x10]
call fcn.004256b9
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x10]
call fcn.004256ce
push 0x22
lea ecx, [esp + 0x10]
call fcn.004256b9
mov edx, dword [esp + 0x8c]
mov eax, dword [edx - 8]
cmp eax, 0x22
jge 0x40486c
mov ebx, 0x22
sub ebx, eax
push 0x43bfe8
lea ecx, [esp + 0x10]
call fcn.00425692
dec ebx
jne 0x4047f5
jmp 0x40486c
mov eax, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push eax
call edi
test eax, eax
jne 0x40487a
push 0x22
lea ecx, [esp + 0x10]
call fcn.004256b9
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x10]
call fcn.004256ce
push 0x22
lea ecx, [esp + 0x10]
call fcn.004256b9
mov edx, dword [esp + 0x80]
mov eax, dword [edx - 8]
cmp eax, 0x22
jge 0x40486c
mov ebx, 0x22
sub ebx, eax
push 0x43bfe8
lea ecx, [esp + 0x10]
call fcn.00425692
dec ebx
jne 0x40485b
push str.____SW_Field_r_n
lea ecx, [esp + 0x10]
call fcn.00425692
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
push eax
push eax
call fcn.004256e6
push eax
lea ecx, [esp + 0x28]
call fcn.004288f9
lea ecx, [esp + 0x20]
call fcn.004289bd
lea eax, [esi + 0x4e0]
lea ecx, [esi + 0x544]
push eax
call fcn.004254c9
lea eax, [esi + 0x4e4]
lea ecx, [esi + 0x548]
push eax
call fcn.004254c9
lea eax, [esi + 0x4e8]
lea ecx, [esi + 0x54c]
push eax
call fcn.004254c9
lea eax, [esi + 0x4ec]
lea ecx, [esi + 0x550]
push eax
call fcn.004254c9
lea eax, [esi + 0x4f0]
lea ecx, [esi + 0x534]
push eax
call fcn.004254c9
lea eax, [esi + 0x4d4]
lea ecx, [esi + 0x538]
push eax
call fcn.004254c9
lea eax, [esi + 0x4dc]
lea ecx, [esi + 0x540]
push eax
call fcn.004254c9
lea eax, [esi + 0x4d8]
lea ecx, [esi + 0x53c]
push eax
call fcn.004254c9
mov ecx, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 2
jne 0x40496a
lea edx, [esi + 0x500]
lea ecx, [esi + 0x554]
push edx
call fcn.004254c9
lea eax, [esi + 0x50c]
lea ecx, [esi + 0x558]
push eax
call fcn.004254c9
mov ecx, dword [esi + 0x4b0]
push 0
push 0
push 0x147
push ecx
call edi
test eax, eax
jne 0x4049a4
lea edx, [esi + 0x4f8]
lea ecx, [esi + 0x554]
push edx
call fcn.004254c9
lea eax, [esi + 0x508]
lea ecx, [esi + 0x558]
push eax
call fcn.004254c9
lea eax, [esi + 0x514]
lea ecx, [esi + 0x55c]
push eax
call fcn.004254c9
mov bl, 1
lea ecx, [esp + 0x10]
mov byte [esi + 0x768], bl
mov byte [esp + 0x98], 2
call fcn.004253d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], bl
call fcn.004253d4
push fcn.004253d4
push 0x18
lea ecx, [esp + 0x38]
push 4
push ecx
mov byte [esp + 0xa8], 0
call fcn.00414804
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
call fcn.004286e5
mov ecx, dword [esp + 0x90]
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret