Function at 0x4d4850
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52d04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc80
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xca0]
mov ebp, ecx
mov esi, dword [edi]
mov eax, dword [edi + 4]
push eax
mov ecx, esi
mov dword [esp + 0x68], esi
call fcn.004e1280
mov ecx, dword [edi + 4]
push ecx
mov ecx, esi
call fcn.004e0320
mov eax, dword [eax + 0x18]
lea ebx, [ebp + 0x14]
and eax, 0x20
push ebx
mov dword [esp + 0x14], eax
call dword [0x56de70]
mov edx, ebx
neg eax
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 8]
mov edi, dword [edi + 0x14]
sbb eax, eax
mov dword [esp + 0x20], edx
add ecx, edx
mov edx, dword [esp + 0x1c]
inc eax
add edi, edx
test eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
je 0x4d4913
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jmp 0x4d4936
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e05b0
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0500
push eax
push 0
lea eax, [esp + 0x38]
push 0
push eax
call dword [0x56df40]
mov ecx, dword [ebp + 0x38]
push 0x26
push ecx
call dword [0x56cb8c]
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], eax
call fcn.004de7d0
mov al, byte [ebp + 0x6d]
mov dword [esp + 0xa0], 0
test al, al
je 0x4d496b
fld dword [ebp + 0x70]
fstp qword [esp + 0x88]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d4985
mov eax, 0x64
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
jmp 0x4d4a6b
movsx eax, word [ebp + 0x68]
mov edx, dword [ebp + 0x1dc]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
push edx
sub ecx, ebx
mov ebx, dword [0x56cdac]
push eax
push ecx
call ebx
mov edx, dword [ebp + 0x1e0]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push edx
movsx eax, word [ebp + 0x68]
fild dword [esp + 0x18]
sub edi, ecx
push eax
fstp qword [esp + 0x2c]
push edi
call ebx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
fild dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
sub edx, eax
fstp qword [esp + 0x44]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fdiv qword [esp + 0x24]
fild dword [esp + 0x14]
fdiv qword [esp + 0x44]
fstp qword [esp + 0x24]
fcom qword [esp + 0x24]
fnstsw ax
test ah, 1
jne 0x4d4a12
fstp st(0)
fld qword [esp + 0x24]
fst qword [esp + 0x24]
fcomp qword [0x538808]
fnstsw ax
test ah, 0x41
jne 0x4d4a6b
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0500
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [esp + 0x24]
fadd qword [0x534388]
call sub.MSVCRT.dll__ftol
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x7c], eax
call fcn.004e05b0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [esp + 0x24]
fadd qword [0x534388]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x104]
push 0x136
push eax
push 0x49c
push ecx
call dword [0x56deac]
mov ecx, dword [esi]
test ecx, ecx
je 0x4d4a98
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
mov ebx, eax
jmp 0x4d4a9a
xor ebx, ebx
mov edi, dword [0x56cdc4]
lea eax, [esp + 0x104]
push eax
call edi
mov ecx, 0x136
lea edx, [esp + 0x104]
sub ecx, eax
push ecx
push edx
call edi
lea eax, [esp + eax + 0x108]
push eax
push ebx
mov ebx, dword [0x56e0b4]
call ebx
mov ecx, esi
call fcn.004e1480
test eax, eax
jle 0x4d4b01
mov ecx, esi
call fcn.004e1480
inc eax
lea ecx, [esp + 0x104]
push eax
push 0x55af88
push ecx
call edi
lea edx, [esp + eax + 0x10c]
push edx
call dword [0x56df30]
add esp, 0xc
mov ecx, dword [0x568d24]
lea eax, [esp + 0x104]
push eax
call fcn.004846b0
mov eax, dword [ebp + 0x260]
mov ecx, dword [0x568d24]
test eax, eax
mov dword [esp + 0xa4], 0x4848d0
mov dword [esp + 0xa8], ecx
jne 0x4d4bc8
lea edx, [esp + 0x78]
mov ecx, esi
push edx
call fcn.004df460
test eax, eax
jne 0x4d4bc8
mov eax, dword [0x568d24]
cmp dword [eax], 0
jne 0x4d4bc8
mov ecx, dword [esi]
test ecx, ecx
je 0x4d4b63
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
jmp 0x4d4b65
xor eax, eax
lea ecx, [esp + 0x23c]
push 0x105
push ecx
push eax
call ebx
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x23c]
push edx
push 0x3ee
lea ecx, [esp + 0x34c]
push eax
push ecx
call fcn.00475a90
mov edx, dword [ebp + 0x208]
mov ecx, dword [ebp + 0x34]
add esp, 0x10
lea eax, [esp + 0x344]
push 1
push edx
push eax
push ecx
call dword [0x56dda4]
cmp eax, 2
jne 0x4d4bc8
mov ecx, dword [0x568d24]
call fcn.004849b0
xor eax, eax
jmp 0x4d52d8
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x104]
push 0x136
push edx
push 0x3fe
push eax
call dword [0x56deac]
mov ecx, dword [esi]
test ecx, ecx
je 0x4d4bf5
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
mov ebx, eax
jmp 0x4d4bf7
xor ebx, ebx
lea eax, [esp + 0x104]
push eax
call edi
mov ecx, 0x136
lea edx, [esp + 0x104]
sub ecx, eax
push ecx
push edx
call edi
lea eax, [esp + eax + 0x108]
push eax
push ebx
call dword [0x56e0b4]
mov ecx, esi
call fcn.004e1480
test eax, eax
jle 0x4d4c56
mov ecx, esi
call fcn.004e1480
inc eax
lea ecx, [esp + 0x104]
push eax
push 0x55af88
push ecx
call edi
lea edx, [esp + eax + 0x10c]
push edx
call dword [0x56df30]
add esp, 0xc
mov ecx, dword [0x568d24]
lea eax, [esp + 0x104]
push eax
call fcn.004846b0
mov ecx, dword [0x568d24]
push 1
push 0
call fcn.004847f0
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x4d4d06
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0500
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0350
mov ecx, dword [esp + 0x30]
mov edi, dword [0x56cdac]
push eax
push ecx
call edi
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.004e0500
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0350
mov edx, dword [esp + 0x38]
push eax
push edx
call edi
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004e05b0
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e03d0
push eax
mov eax, dword [esp + 0x38]
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.004e05b0
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e03d0
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call edi
mov dword [esp + 0x38], eax
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004e0800
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4d4dc0
test ebx, ebx
jne 0x4d4dc0
mov eax, dword [ebp + 0x30]
mov edi, dword [0x56deac]
lea edx, [esp + 0x23c]
push 0x104
push edx
push 0x3f1
push eax
call edi
mov edx, dword [ebp + 0x30]
lea ecx, [esp + 0x344]
push 0x104
push ecx
push 0x3ef
push edx
call edi
mov esi, dword [esi]
test esi, esi
je 0x4d4d71
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
jmp 0x4d4d73
xor eax, eax
lea ecx, [esp + 0x344]
lea edx, [esp + 0x23c]
push ecx
push eax
push edx
lea eax, [esp + 0x684]
push str._s:__s_n_s
push eax
call dword [0x56df30]
mov ecx, dword [ebp + 0x208]
mov eax, dword [ebp + 0x34]
add esp, 0x14
lea edx, [esp + 0x678]
push 0x31
push ecx
push edx
push eax
call dword [0x56dda4]
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x4d52d8
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x1c]
sub ebx, edx
sub edi, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x6c], edi
je 0x4d4f6b
mov ecx, dword [ebp + 0x38]
push ecx
call dword [0x56cb3c]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [0x56cbc4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [0x56cbc4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [0x56cbc4]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x38]
push edx
push eax
call dword [0x56cb24]
test eax, eax
je 0x4d4e8e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 1
push ecx
push edx
push eax
call dword [0x56cbc8]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x38]
push ecx
push edx
call dword [0x56cbcc]
mov eax, dword [esp + 0x24]
push ebx
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e0500
push eax
call dword [0x56cdac]
mov ecx, dword [esp + 0x28]
push edi
push ecx
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.004e05b0
push eax
call dword [0x56cdac]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
push ebx
neg eax
push edx
push eax
call dword [0x56cdac]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, eax
push edi
add ebx, ecx
mov ecx, dword [esp + 0x2c]
neg edx
push ecx
push edx
call dword [0x56cdac]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
add eax, edx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebx
add ebx, ecx
push eax
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x78], ebx
call fcn.004e0840
mov ecx, dword [ebp + 0x38]
push eax
push ecx
call dword [0x56cb28]
mov edx, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [ebp + 0x38]
push edx
push eax
call dword [0x56cb40]
mov ecx, dword [esp + 0x14]
mov edi, dword [0x56cc10]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
jmp 0x4d5204
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4d4fb6
mov ecx, dword [esp + 0x18]
push edi
push ebx
push eax
push edx
push ecx
call fcn.00472050
add esp, 0x14
test eax, eax
jne 0x4d4faa
mov edx, dword [ebp + 0x34]
push eax
mov eax, dword [ebp + 0x30]
push 0x3ec
push 0x3f0
push edx
push eax
call fcn.00472ce0
add esp, 0x14
xor eax, eax
jmp 0x4d52d8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 1
mov ecx, dword [ebp + 0x38]
push ecx
call dword [0x56cc1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
push edx
push eax
call dword [0x56cc18]
test eax, eax
jne 0x4d4fec
mov eax, dword [ebp + 0x34]
push str.SelectObject__
push eax
call fcn.00472db0
add esp, 8
xor eax, eax
jmp 0x4d52d8
mov eax, dword [esp + 0x3c]
test ah, 0x28
jne 0x4d5020
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [ebp + 0x38]
push edi
push ebx
push edx
push eax
push ecx
call dword [0x56cc14]
mov ebx, eax
jmp 0x4d51e6
mov eax, dword [ebp + 0x238]
xor esi, esi
cmp eax, esi
je 0x4d5128
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push edx
call fcn.00492b60
mov eax, dword [ebp + 0x23c]
mov dword [esp + 0xc98], esi
cmp eax, 6
mov dword [esp + 0x10], esi
ja case.default.0x4d5058
jmp dword [eax*4 + 0x4d52f4]
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push esi
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 1
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 2
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 3
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 4
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 5
jmp 0x4d50c5
mov eax, dword [0x568d24]
push eax
push 0x4848d0
push 6
push edi
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.00494750
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
cmp ecx, esi
je case.default.0x4d5058
mov eax, dword [0x568d24]
cmp dword [eax], esi
jne case.default.0x4d5058
push esi
call fcn.00493450
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp ecx, esi
mov dword [esp + 0x14], 1
mov edi, ecx
je case.default.0x4d5058
call fcn.00492f70
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc98], 0xffffffff
call fcn.00492f70
push 0x428
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0xb0]
mov edi, eax
push ecx
push 0x54
push edx
mov dword [esp + 0x1c], edi
call dword [0x56cc20]
mov ecx, 0xa
lea esi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc2]
cmp cx, 8
ja 0x4d5195
mov eax, dword [esp + 0xe8]
test eax, eax
jne 0x4d517d
mov eax, 1
shl eax, cl
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
lea ecx, [esi + 0x28]
push ecx
push eax
push 0
push edx
call dword [0x56cb4c]
jmp 0x4d5199
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x28]
push 0xcc0020
push 0
push esi
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push 0
push 0
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [ebp + 0x38]
push ecx
push edx
push eax
call dword [0x56cbd8]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x68]
add esp, 4
mov ecx, dword [esp + 0x44]
push ecx
call dword [0x56cc0c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d5204
mov edx, dword [esp + 0x18]
push edx
call dword [0x56cc10]
mov ecx, dword [0x568d24]
push 1
push 1
call fcn.004847f0
test ebx, ebx
jne 0x4d52be
mov ecx, dword [0x568d24]
cmp dword [ecx], 0
jne 0x4d52be
call fcn.00484790
mov ecx, dword [ebp + 0x30]
mov edi, dword [0x56deac]
lea eax, [esp + 0x574]
push 0x104
push eax
push 0x3f1
push ecx
call edi
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x470]
push 0x104
push edx
push 0x4a6
push eax
call edi
mov ecx, dword [esi]
test ecx, ecx
je 0x4d5273
mov edx, dword [ecx]
push ebx
call dword [edx + 0x10]
jmp 0x4d5275
xor eax, eax
lea ecx, [esp + 0x470]
lea edx, [esp + 0x574]
push ecx
push eax
push edx
lea eax, [esp + 0x990]
push str._s:__s_n_s
push eax
call dword [0x56df30]
mov ecx, dword [ebp + 0x208]
mov eax, dword [ebp + 0x34]
add esp, 0x14
lea edx, [esp + 0x984]
push 0x31
push ecx
push edx
push eax
call dword [0x56dda4]
cmp eax, 1
jne 0x4d52be
mov ebx, eax
mov eax, dword [ebp + 0x260]
test eax, eax
jne 0x4d52d1
push 0
mov ecx, esi
call fcn.004e0fc0
xor eax, eax
test ebx, ebx
setne al
mov ecx, dword [esp + 0xc90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8c
ret 4