Function at 0x495130
Capabilities:
Get number of processors
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x4ec1bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov ebx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx]
push 0x4efd50
push eax
push ecx
push ebx
push 0x11
mov ecx, esi
call fcn.0043d880
xor edi, edi
mov dword [esi], 0x4fb4cc
push 2
mov dword [esp + 0x3c], edi
mov dword [esi + 0x44], edi
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esi + 0x44], eax
je 0x4951aa
mov word [eax], di
push 2
mov dword [esi + 0x48], edi
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x4951c1
mov word [eax], di
push 2
mov dword [esi + 0x4c], edi
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x4951d8
mov word [eax], di
push 0x51d5ec
mov dword [esp + 0x28], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebx + 0x2c]
mov al, byte [esp + 0x68]
mov ecx, dword [esi + 0x24]
mov byte [esi + 0x40], al
mov eax, dword [esi + 0x2c]
mov ebp, dword [ebx + 0x48]
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
shl ebp, 2
mov dword [esp + 0x18], eax
lea eax, [esp + 0x64]
not ebp
mov dword [esp + 0x48], ebx
push eax
mov byte [esp + 0x3c], 4
and ebp, 0x10000
mov dword [esp + 0x58], edi
xor ebx, ebx
mov dword [esp + 0x5c], 0x4efd50
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x64
mov dword [esp + 0x44], edi
mov dword [esp + 0x68], edx
call fcn.00443850
mov ecx, dword [esp + 0x68]
mov ax, word [ecx]
add esp, 4
cmp ax, 0x3a
je 0x495272
mov dword [esp + 0x58], ecx
cmp ax, di
je 0x49528d
cmp ax, 0x3a
je 0x495289
mov ax, word [ecx + 2]
add ecx, 2
cmp ax, di
jne 0x495277
mov dword [esp + 0x64], ecx
cmp word [ecx], 0x3a
jne 0x49529d
mov word [ecx], di
add ecx, 2
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0044cd70
add esp, 8
test eax, eax
jle 0x4952d0
lea eax, [esp + 0x64]
push eax
call fcn.00443850
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x64]
mov ax, word [edx]
cmp ax, di
je 0x4952ed
cmp ax, 0x30
jb 0x4952e8
cmp ax, 0x39
jbe 0x4952ed
add dword [esp + 0x64], 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x34], edi
call fcn.0044cd70
add esp, 8
test eax, eax
jle 0x495324
lea edx, [esp + 0x64]
push edx
call fcn.00443850
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x64]
mov ax, word [ecx]
cmp ax, di
je 0x495341
cmp ax, 0x30
jb 0x49533c
cmp ax, 0x39
jbe 0x495341
add dword [esp + 0x64], 2
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0044cd70
add esp, 8
test eax, eax
jle 0x495367
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
mov dword [esp + 0x64], eax
push 0x3a
lea eax, [esi + 0x48]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0044c770
mov edx, dword [esp + 0x70]
add esp, 0xc
cmp word [edx], 0x3a
jne 0x4953aa
push 0x3a
lea eax, [esi + 0x4c]
push eax
mov ecx, edx
lea eax, [esp + 0x6c]
add ecx, 2
push eax
mov dword [esp + 0x70], ecx
call fcn.0044c770
add esp, 0xc
mov ecx, dword [esp + 0x64]
cmp word [ecx], 0x3a
jne 0x4953ce
push 0x3a
lea eax, [esi + 0x44]
push eax
lea edx, [esp + 0x6c]
add ecx, 2
push edx
mov dword [esp + 0x70], ecx
call fcn.0044c770
add esp, 0xc
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0xac]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x58]
dec ecx
cmp word [edx], di
mov dword [esp + 0x64], ecx
je 0x495447
test ecx, ecx
jle 0x495445
lea esp, [esp]
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xa8]
mov eax, dword [edx]
mov eax, dword [eax + edi*4]
cmp dword [eax + 4], 3
jne 0x495420
mov eax, dword [eax + 8]
test eax, eax
je 0x495420
mov ecx, dword [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x495427
mov ecx, dword [esp + 0x64]
inc edi
cmp edi, ecx
jl 0x4953f0
jmp 0x495445
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0xa8]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x54], ecx
mov ebx, 2
xor edi, edi
push 0x54
call fcn.004cc845
add esp, 4
mov dword [esp + 0x64], eax
cmp eax, edi
mov byte [esp + 0x38], 5
je 0x49546b
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004afca0
mov edi, eax
mov ecx, dword [esp + 0x68]
mov eax, ecx
shr eax, 0xf
and eax, 1
sete al
test cl, 0x10
mov dword [esi + 0x1c], edi
mov byte [esp + 0x38], 4
mov dword [edi + 0x50], 0
mov byte [esp + 0x68], al
jne 0x495498
or ebx, 0x10000000
test cl, 0x20
je 0x4954a0
or ebx, 1
test cl, 0x40
je 0x4954a8
or ebx, 0x40
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x4954b7
test cl, cl
jns 0x4954b7
or ebx, 0x12
test ecx, ecx
jns 0x4954c0
or ebx, 8
jmp 0x4954cb
test ecx, 0x20000000
je 0x4954cb
or ebx, 4
test al, al
jne 0x4954d5
or ebx, 0x8000000
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x10]
push str.msctls_updown32
push eax
push edx
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
or ebx, 0x120
mov eax, ebx
or eax, ebp
or eax, 0x40000000
push eax
mov ecx, edi
call fcn.004afea0
mov ecx, dword [esp + 0x48]
call fcn.004a38a0
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
je 0x495541
cmp eax, 0xffffffff
je 0x495541
mov ecx, dword [edi + 0x18]
push 1
push eax
push 0x30
push ecx
call ebp
mov eax, dword [esp + 0x54]
test eax, eax
je 0x495557
mov edx, dword [edi + 0x18]
push 0
push eax
push 0x469
push edx
call ebp
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [edi]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x8c]
mov ecx, dword [esp + 0x40]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x90]
movzx edx, byte [esp + 0x68]
push edx
mov ecx, esi
call fcn.0043d740
and ebx, 0x10000000
push ebx
mov ecx, esi
call fcn.0043d7e0
mov eax, dword [edi + 0x18]
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [esi + 8]
cmp word [eax], 0
je 0x4955b7
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x30]
push eax
call fcn.00466e80
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x2c