Function at 0x40e85b
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x3134]
mov eax, 0x3134
call fcn.0041e0a0
push 0xffffffffffffffff
push 0x42015a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x434018]
xor eax, ebp
mov dword [ebp + 0x3130], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x313c]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esi + 0x1c], 0x64
mov ecx, dword [0x434138]
mov dword [ebp - 4], ebx
call fcn.0040fc3a
push dword [esi + 0x474]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x3140]
lea eax, [ebp + 0x2088]
push edi
push eax
call sub.MSVCR90.dll_memcpy
push ebx
call fcn.0040e01e
add esp, 0x10
push dword [ebp + 0x3140]
lea eax, [ebp + 0x2088]
push eax
lea ecx, [ebp + 0x1044]
call fcn.0040e1c1
movzx ecx, byte [ebp + 0x1048]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
movzx ecx, byte [ebp + 0x1048]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
je 0x40f2d3
lea eax, [ebp + 0x1044]
push eax
lea ecx, [ebp]
call fcn.0040e414
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1044]
push eax
mov ecx, esi
call fcn.0040e580
mov dword [ebp - 0x10], eax
mov eax, dword [0x434138]
mov edi, 0x434140
cmp dword [eax + 0xa4], ebx
je 0x40e9dd
movzx cx, byte [ebp + 0x1048]
imul cx, word [eax + 0xa0]
movzx eax, word [ebp - 0x14]
movzx ebx, cx
push eax
mov ecx, edi
mov dword [ebp - 0x20], ebx
call fcn.0040da27
mov ecx, dword [eax + 8]
movzx eax, word [ebp - 0x18]
movzx ebx, bx
lea edx, [eax + ebx]
cmp ecx, edx
jl 0x40e9b0
mov ecx, dword [0x434138]
cmp eax, dword [ecx + 0xa0]
jbe 0x40e9e0
movzx eax, word [ebp - 0x14]
push eax
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.0040da27
movzx ecx, word [ebp - 0x28]
mov eax, dword [eax + 8]
add ecx, ebx
xor edx, edx
cmp eax, ecx
setge dl
inc edx
inc edx
movzx eax, dx
mov dword [ebp - 0x1c], eax
jmp 0x40e9e0
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x1c]
lea ecx, [ebp]
push dword [ebp - 0x10]
call fcn.0040defd
cmp dword [ebp - 0x10], 0
jne 0x40f22c
mov al, byte [ebp + 0x1049]
test al, al
jbe 0x40ec2f
cmp al, 2
jbe 0x40eb16
cmp al, 4
jbe 0x40ea1a
cmp al, 0x14
jne 0x40ec2f
mov eax, dword [ebp + 0x1038]
movzx ecx, word [ebp + 0x1050]
movzx edx, word [ebp + 0x104c]
mov dword [ebp - 0x28], eax
lea ebx, [edx + ecx]
mov eax, 0x10000
cmp ebx, eax
jg 0x40ead1
push ecx
push edx
lea eax, [ebp - 0x30]
push str.Read_Register_from__d_for__d_._n
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x30]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
xor eax, eax
xor ebx, ebx
cmp ax, word [ebp + 0x1050]
jae 0x40f235
movzx ecx, word [ebp + 0x104c]
movzx eax, word [ebp - 0x20]
add ecx, eax
movzx eax, word [ebp - 0x14]
add ecx, ebx
push ecx
push eax
mov ecx, edi
call fcn.0040da27
mov ecx, eax
call fcn.0040d984
movzx eax, ax
push eax
call fcn.0041b371
pop ecx
mov ecx, dword [ebp - 0x28]
add dword [ebp - 0x28], 2
mov word [ecx], ax
movzx eax, word [ebp + 0x1050]
inc ebx
cmp ebx, eax
jl 0x40ea89
jmp 0x40f235
or byte [ebp + 0x31], 0x80
push 2
push eax
lea eax, [ebp - 0x30]
push str.Read_register_past__d_error_x_02X__n
push eax
mov byte [ebp + 0x32], 2
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esi]
lea ecx, [ebp - 0x30]
add edi, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [edi]
jmp 0x40f235
mov eax, dword [ebp + 0x1038]
movzx ecx, word [ebp + 0x104c]
mov dword [ebp - 0x28], eax
movzx eax, word [ebp + 0x1050]
lea edx, [ecx + eax]
cmp edx, 0x10000
jg 0x40ec22
push eax
push ecx
lea eax, [ebp - 0x30]
push str.Read_In_output_from__d_for__d_bits._n
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x30]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
mov ax, word [ebp + 0x1050]
movzx ecx, word [ebp + 0x1050]
shr ax, 3
and ecx, 0x80000007
movzx eax, ax
jns 0x40eb95
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x40eb98
inc eax
movzx eax, ax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x40f235
and dword [ebp - 0x24], 0
and dword [ebp - 0x10], 0
mov ebx, ecx
shl ebx, 3
mov dword [ebp - 0x2c], 8
movzx eax, word [ebp + 0x1050]
cmp ebx, eax
jge 0x40ebfd
movzx eax, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x20]
add eax, ebx
add ecx, eax
movzx eax, word [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0040da27
mov ecx, eax
call fcn.0040d984
test ax, ax
je 0x40ebfd
mov ecx, dword [ebp - 0x10]
xor eax, eax
inc eax
shl eax, cl
add dword [ebp - 0x24], eax
inc dword [ebp - 0x10]
inc ebx
dec dword [ebp - 0x2c]
jne 0x40ebbf
mov ecx, dword [ebp - 0x28]
mov al, byte [ebp - 0x24]
inc dword [ebp - 0x28]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
inc ecx
cmp ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
jl 0x40ebab
jmp 0x40f235
or byte [ebp + 0x31], 0x80
mov byte [ebp + 0x32], 2
jmp 0x40f235
movzx eax, word [ebp + 0x1050]
movzx ecx, word [ebp + 0x104c]
add eax, ecx
cmp eax, 0x10000
jg 0x40f1ce
push 0x434154
lea ecx, [ebp - 0x44]
call fcn.0040d89c
cmp dword [ebp - 0x38], 0
mov ebx, dword [ebp + 0x1038]
mov dword [ebp - 0x28], ebx
jne 0x40f1c2
movzx eax, byte [ebp + 0x1049]
sub eax, 5
je 0x40f0c3
dec eax
je 0x40efb5
sub eax, 9
je 0x40ee97
dec eax
je 0x40edd7
sub eax, 5
je 0x40edd7
dec eax
jne 0x40f1c2
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
movzx eax, word [ebp + 0x104c]
push eax
lea eax, [ebp - 0x18]
push str.Write_Mask_register__d._n
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x18]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
movzx eax, word [ebp - 0x20]
movzx edx, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x14]
add edx, eax
push edx
push ecx
mov ecx, edi
call fcn.0040da27
mov ecx, eax
call fcn.0040d984
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x207c]
movzx eax, word [eax]
push eax
call fcn.0041b371
add dword [ebp + 0x207c], 2
movzx ebx, ax
mov eax, dword [ebp + 0x207c]
movzx eax, word [eax]
push eax
call fcn.0041b371
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov ecx, ebx
not ecx
and ecx, eax
mov eax, ebx
and eax, dword [ebp - 0x2c]
add dword [ebp + 0x207c], 2
or ecx, eax
movzx eax, cx
mov dword [ebp - 0x10], eax
movzx eax, ax
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, bx
push eax
movzx eax, word [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push str.In_04X_And_04X_Or_04X_Out_04X._n
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x20
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x18]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 1
call fcn.0041b371
movzx eax, ax
pop ecx
movzx ecx, word [ebp + 0x104c]
push eax
movzx eax, word [ebp - 0x20]
add ecx, eax
movzx eax, word [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0040da3d
lea ecx, [ebp - 0x18]
jmp 0x40f0b8
mov ax, word [ebp + 0x1050]
shr ax, 1
movzx ebx, ax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
movzx eax, bx
push eax
movzx eax, word [ebp + 0x104c]
push eax
lea eax, [ebp - 0x10]
push str.Write_multiple_registers_from__d_for__d_registers._n
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x10]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
movzx ebx, word [ebp - 0x24]
and dword [ebp - 0x18], 0
test ebx, ebx
jle 0x40f1c2
mov eax, dword [ebp + 0x207c]
movzx eax, word [eax]
push eax
call fcn.0041b371
movzx eax, ax
pop ecx
movzx ecx, word [ebp + 0x104c]
push eax
movzx eax, word [ebp - 0x20]
add ecx, eax
add ecx, dword [ebp - 0x18]
movzx eax, word [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0040da3d
add dword [ebp + 0x207c], 2
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jl 0x40ee52
jmp 0x40f1c2
movzx eax, word [ebp + 0x1050]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0x104e]
shr ax, 3
movzx eax, ax
mov dword [ebp - 0x10], eax
movzx eax, word [ebp + 0x104e]
and eax, 0x80000007
jns 0x40eec5
dec eax
or eax, 0xfffffff8
inc eax
je 0x40eeca
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_316]
movzx eax, word [ebp + 0x104e]
push eax
movzx eax, word [ebp + 0x104c]
push eax
lea eax, [ebp - 0x24]
push str.Write_multiple_outputs_from__d_for__d_bits._n
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi]
lea ecx, [ebp - 0x24]
add ebx, 0x24
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call dword [ebx]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
movzx eax, word [ebp - 0x10]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
jle 0x40f1c2
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jle 0x40efa9
and dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 8
cmp dword [ebp - 0x18], 0
jle 0x40ef95
mov ecx, dword [ebp - 0x10]
dec dword [ebp - 0x18]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp + 0x207c]
mov cl, byte [ecx]
test cl, al
movzx eax, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x20]
je 0x40ef7e
push 1
jmp 0x40ef80
push 0
add eax, dword [ebp - 0x10]
lea eax, [eax + ebx*8]
add ecx, eax
movzx eax, word [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0040da3d
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x40ef52
inc dword [ebp + 0x207c]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x40ef47
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jg 0x40ef42
jmp 0x40f1c2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
movzx eax, word [ebp + 0x104c]
push eax
lea eax, [ebp - 0x1c]
push str.Write_single_register__d._n
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
add eax, 0x24
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, esi
call dword [eax]
cmp dword [esi + 0x480], 0
mov dword [ebp - 0x24], 1
je 0x40f043
mov eax, dword [ebp + 0x207c]
movzx eax, word [eax]
push eax
call fcn.0041b371
movzx eax, ax
pop ecx
movzx ecx, word [ebp - 0x20]
push eax
movzx eax, word [ebp + 0x104c]
add eax, ecx
push eax
movzx eax, word [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040da3d
movzx eax, word [ebp - 0x20]
movzx edx, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x14]
add edx, eax
push edx
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, edi
call fcn.0040da27
mov ecx, eax
call fcn.0040d984
movzx eax, ax
push eax
call fcn.0041b371
mov word [ebx], ax
cmp dword [esi + 0x480], 0
pop ecx
jne 0x40f0a9
mov eax, dword [ebp + 0x207c]
movzx eax, word [eax]
push eax
call fcn.0041b371
pop ecx
movzx ecx, word [ebp + 0x104c]
movzx eax, ax
push eax
movzx eax, word [ebp - 0x20]
add ecx, eax
push ecx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040da3d
add dword [ebp + 0x207c], 2
inc ebx
inc ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x40f1c2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
movzx eax, word [ebp + 0x104c]
push eax
lea eax, [ebp - 0x1c]
push str.Write_single_output__d._n
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
add eax, 0x24
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp dword [esi + 0x480], 0
je 0x40f155
mov ecx, dword [ebp + 0x207c]
xor eax, eax
cmp word [ecx], ax
movzx ecx, word [ebp - 0x20]
setne al
movzx eax, ax
push eax
movzx eax, word [ebp + 0x104c]
add eax, ecx
push eax
movzx eax, word [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040da3d
movzx eax, word [ebp - 0x20]
movzx edx, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x14]
add edx, eax
push edx
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, edi
call fcn.0040da27
mov ecx, eax
call fcn.0040d984
neg ax
sbb al, al
mov byte [ebx], al
inc ebx
mov byte [ebx], 0
inc ebx
cmp dword [esi + 0x480], 0
mov dword [ebp - 0x28], ebx
jne 0x40f1bb
mov ecx, dword [ebp + 0x207c]
xor eax, eax
cmp word [ecx], ax
movzx ecx, word [ebp + 0x104c]
setne al
movzx eax, ax
push eax
movzx eax, word [ebp - 0x20]
add ecx, eax
push ecx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040da3d
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0040d8de
mov eax, dword [0x434138]
test eax, eax
je 0x40f235
lea ecx, [eax + 0x10d0]
call fcn.0040c9a8
movzx edi, word [ebp + 0x104c]
movzx ecx, word [ebp - 0x20]
mov ebx, eax
movzx eax, word [ebp - 0x24]
add eax, edi
lea eax, [eax + ecx - 1]
cdq
idiv ebx
push eax
lea eax, [edi + ecx]
cdq
idiv ebx
lea ecx, [ebp + 0x1044]
push eax
movzx ax, byte [ebp + 0x1049]
movzx eax, ax
push eax
call fcn.0040e067
mov ecx, dword [0x434138]
movzx eax, ax
push eax
call fcn.0040e193
jmp 0x40f235
mov eax, dword [ebp + 0x1038]
mov dword [ebp - 0x28], eax
cmp byte [ebp + 0x1048], 0
je 0x40f2d3
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x30]
sub ax, cx
add ax, 2
lea ecx, [ebp]
mov word [ebp + 0x10], ax
call fcn.0040e028
mov eax, dword [esi]
push 2
mov ecx, esi
mov dword [esi + 0x1c], 0x66
call dword [eax + 0x1c]
mov ecx, esi
call fcn.00418051
cmp dword [esi + 0x48c], 0
lea eax, [ebp + 0x3090]
push eax
jne 0x40f294
lea eax, [ebp + 0x30]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov ecx, esi
call fcn.004180c5
jmp 0x40f2b5
movzx eax, word [ebp + 0x10]
push eax
lea eax, [ebp + 0x30]
push eax
push esi
lea ecx, [esi + 0x484]
call fcn.00417c2e
mov eax, dword [esi]
push str.Comm_Error_injection_simulation_active._n
mov ecx, esi
call dword [eax + 0x24]
mov dword [esi + 0x1c], 0x67
mov ecx, dword [0x434138]
call fcn.0040fc41
mov eax, dword [esi]
push 0x42679c
mov ecx, esi
call dword [eax + 0x24]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3130]
xor ecx, ebp
call fcn.0041de66
add ebp, 0x3134
leave
ret 8