Function at 0x404840
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b14ed
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x532804]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], ecx
test edi, edi
je 0x404932
test eax, eax
je 0x404932
test esi, esi
je 0x404932
test ecx, ecx
je 0x404932
cmp word [esi + 0x40], 0
jne 0x404a38
add eax, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp word [esi + 0x40], 0
mov byte [ebp - 0x7c], 1
jne 0x404a1a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40497a
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0
mov dword [ebp - 0x40], 0x30
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x40494f
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x74]
push dword [esi + 0x30]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x40494f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x7c], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb30
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [esi + 0x20], xmm0
mov eax, dword [esi + 8]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x84]
mov dword [esi + 0x28], edi
mov dword [esi + 8], eax
jmp 0x404997
cmp dword [esi + 0x3c], 0
je 0x404984
xor eax, eax
jmp 0x404987
mov eax, dword [edi + 8]
push dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
and dword [esi + 4], 0xffffbfff
mov dword [esi + 0x14], eax
test edi, edi
jne 0x4049c5
push esi
push str.ATL:_p
lea edi, [esi + 0x42]
push 0x25
push edi
call fcn.0042efd0
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esi + 0x28], edi
movups xmm0, xmmword [esi]
lea ecx, [ebp - 0x70]
push ecx
movups xmmword [ebp - 0x70], xmm0
push edi
movups xmm0, xmmword [esi + 0x10]
push eax
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_GetClassInfoExW]
movzx eax, ax
mov word [esi + 0x40], ax
test ax, ax
jne 0x404a1a
push esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov di, ax
mov word [ebp - 0x74], di
test di, di
je 0x404a16
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ecx + 0x20]
call int.00413780
mov word [esi + 0x40], di
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
add eax, 4
push eax
sub eax, 0xea810000
mov dword [0xc2810001], esp
das
sub al, byte [ecx]
add byte [ecx + 0x34e8f2], al
add byte [edx + 0x52], bl