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

Disassembly:
push 0xffffffffffffffff
push 0x529c68
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov eax, dword [0x552a7c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
push 0x558950
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], 0x558950
mov dword [esp + 0x90], ebx
cmp byte [0x558860], bl
je 0x401fdb
mov eax, 0x558860
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401fc0
sub eax, edx
push eax
push 0x558860
mov ecx, edi
call fcn.00404060
jmp 0x4021ae
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cpuid
lea esi, [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp dword [esp + 0xc], eax
jb 0x40204a
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 + 0xc]
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov eax, SysReAllocStringLen
cpuid
lea esi, [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
push 0x40
lea ecx, [esp + 0x48]
push 0
push ecx
mov dword [esi + 0xc], edx
call fcn.004f7580
add esp, 0xc
cmp dword [esp + 0xc], 0x80000004
jb 0x40211d
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 + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], edx
mov eax, SysReAllocStringLen
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
xor ecx, ecx
mov dword [esp + 0x5c], 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 + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x542298
lea edx, [esp + 0x28]
push edx
call esi
push 0x542298
lea eax, [esp + 0x48]
push eax
call esi
mov ecx, str.GenuineIotel
lea eax, [esp + 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402164
test dl, dl
je 0x402160
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402164
add eax, 2
add ecx, 2
test dl, dl
jne 0x402144
xor eax, eax
jmp 0x402169
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402180
mov eax, str.GenuineIntel
mov edx, 0x20
lea ecx, [esp + 0x24]
call fcn.00404ef0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
push str._s__x__s
push edi
call fcn.004045f0
mov eax, dword [edi]
add esp, 0x14
mov edx, 0x80
mov ecx, 0x558860
call fcn.00404ef0
push 0x558950
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004f7567
add esp, 0x88
ret