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

Disassembly:
push 0xffffffffffffffff
push 0x44ca18
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x458320]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458320]
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 0x45c1d8
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], 0x45c1d8
mov dword [esp + 0x98], ebx
cmp byte [0x45c0e8], bl
je 0x4069fe
mov eax, 0x45c0e8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4069e2
sub eax, edx
mov edi, eax
push 0x45c0e8
mov eax, ebp
call fcn.00408aa0
jmp 0x406bd3
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 0x406a6d
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.004263e0
add esp, 0xc
cmp dword [esp + 0x14], 0x80000004
jb 0x406b40
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, reloc.WS2_32.dll_closesocket
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.WS2_32.dll_connect
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 0x4539a8
lea edx, [esp + 0x30]
push edx
call esi
push 0x4539a8
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 0x406b87
test dl, dl
je 0x406b83
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406b87
add eax, 2
add ecx, 2
test dl, dl
jne 0x406b67
xor eax, eax
jmp 0x406b8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406ba3
mov eax, str.GenuineIntel
mov edx, 0x20
lea ecx, [esp + 0x2c]
call fcn.004096b0
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.00409030
mov eax, dword [ebp]
add esp, 0x10
mov edx, 0x80
mov ecx, 0x45c0e8
call fcn.004096b0
push 0x45c1d8
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.004263ce
add esp, 0x88
ret