Function at 0x40fa70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bc808
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
xor eax, eax
xor ebx, ebx
push 0x4ee530
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0x4ee530
mov dword [esp + 0x98], ebx
cmp byte [0x4ee448], bl
je 0x40fb0e
mov eax, 0x4ee448
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40faf2
sub eax, edx
mov edi, eax
push 0x4ee448
mov eax, ebp
call fcn.00411be0
jmp 0x40fce3
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cpuid
lea esi, [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
cmp dword [esp + 0x14], eax
jb 0x40fb7d
xor ecx, ecx
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
xor ecx, ecx
mov eax, SysReAllocString
cpuid
lea esi, [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
push 0x40
lea ecx, [esp + 0x50]
push 0
push ecx
mov dword [esi + 0xc], edx
call fcn.00484150
add esp, 0xc
cmp dword [esp + 0x14], 0x80000004
jb 0x40fc50
xor ecx, ecx
mov eax, reloc.OLEAUT32.dll_SysReAllocString
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x58], edx
mov eax, SysStringLen
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
xor ecx, ecx
mov dword [esp + 0x64], edx
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x4ce3dc
lea edx, [esp + 0x30]
push edx
call esi
push 0x4ce3dc
lea eax, [esp + 0x50]
push eax
call esi
mov ecx, str.GenuineIotel
lea eax, [esp + 0x2c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fc97
test dl, dl
je 0x40fc93
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fc97
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fc77
xor eax, eax
jmp 0x40fc9c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40fcb3
mov eax, str.GenuineIntel
mov edx, 0x20
lea ecx, [esp + 0x2c]
call fcn.004127f0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push str._s__x__s
mov edi, ebp
call fcn.00412170
mov eax, dword [ebp]
add esp, 0x10
mov edx, 0x80
mov ecx, 0x4ee448
call fcn.004127f0
push 0x4ee530
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00484247
add esp, 0x88
ret