Function at 0x514d7d
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4538d1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xcbe4
call fcn.0054637d
mov eax, dword [0x4724d0]
xor eax, esp
mov dword [esp + 0xcbe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4724d0]
xor eax, esp
push eax
lea eax, [esp + 0xcbf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov edi, edx
push ebx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], edi
mov byte [esp + 0x23], bl
call fcn.00515abd
push 0x206
lea edx, [esp + 0x1f2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1f8], cx
call fcn.00538cdd
add esp, 0x14
push 0x48b2d8
lea eax, [esp + 0x1e8]
push 0x460be8
push eax
call dword [fcn.004541fc]
add esp, 0xc
push 0x103
or eax, 0xffffffff
lea ecx, [esp + 0xe1]
push ebx
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0xe8], bl
call fcn.00538cdd
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x514e5d
sub eax, ecx
jne 0x514e76
mov dword [edi], 0x2000c351
or eax, 0xffffffff
jmp 0x51597d
lea edx, [esp + 0x1e4]
push 0x460a0c
push edx
call fcn.00535551
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x514f7a
push 2
push 0
push esi
call fcn.005359d6
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00535438
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call fcn.00535abf
add esp, 0xc
push ebx
lea ecx, [esp + 0x1e8]
push edi
push ecx
lea ecx, [esp + 0xe8]
call fcn.0050ebcd
add esp, 0xc
or edi, ebx
mov dword [esp + 0x48], 2
jne 0x514f56
push 0x460a0c
push 0x48b2d8
call fcn.00535551
mov esi, eax
add esp, 8
test esi, esi
je 0x514faa
push 2
push 0
push esi
call fcn.005359d6
add esp, 0xc
lea edx, [esp + 0x34]
push edx
push esi
call fcn.00535438
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call fcn.00535abf
add esp, 0xc
push ebx
push edi
push 0x48b2d8
lea ecx, [esp + 0xe8]
call fcn.0050ebcd
add esp, 0xc
mov dword [esp + 0x48], 1
push 0
push 1
push 2
call dword [0x454250]
mov edi, eax
mov dword [esp + 0x54], edi
cmp edi, 0xffffffff
jne 0x514fde
mov dword [esp + 0x14], 0x20002739
jmp 0x5158e0
call dword [fcn.00454034]
cmp eax, 0x20
jne 0x514f93
mov dword [edi], 0x20007584
or eax, 0xffffffff
jmp 0x51597d
cmp eax, 5
jne 0x514eeb
mov dword [edi], 0x20007588
or eax, 0xffffffff
jmp 0x51597d
call dword [fcn.00454034]
cmp eax, 0x20
jne 0x514fc7
mov eax, dword [esp + 0x58]
mov dword [eax], 0x20007584
or eax, 0xffffffff
jmp 0x51597d
cmp eax, 5
jne 0x514f56
mov ecx, dword [esp + 0x58]
mov dword [ecx], 0x20007588
or eax, 0xffffffff
jmp 0x51597d
xor eax, eax
mov edx, 2
push 0x48b760
mov dword [esp + 0xb0], eax
push 7
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov word [esp + 0xb4], dx
call fcn.0050fc3d
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, 0x2fffffff
jne 0x5158e0
push 0x48b85c
call dword [0x454268]
mov dword [esp + 0xb0], eax
movzx eax, word [0x48b86c]
push eax
call dword [0x454258]
mov esi, dword [0x454254]
push 4
lea ecx, [esp + 0x74]
push ecx
push 0x1005
push 0xffff
push edi
mov word [esp + 0xc2], ax
mov dword [esp + 0x84], 0xea60
call esi
cmp eax, 0xffffffff
jne 0x515086
mov dword [esp + 0x14], 0x2000273d
jmp 0x5158e0
push 4
lea edx, [esp + 0x74]
push edx
push 0x1006
push 0xffff
push edi
call esi
cmp eax, 0xffffffff
jne 0x5150ac
mov dword [esp + 0x14], 0x2000273d
jmp 0x5158e0
push 0x10
lea eax, [esp + 0xb0]
push eax
push edi
call dword [0x45426c]
test eax, eax
je 0x5150ce
mov dword [esp + 0x14], 0x20002733
jmp 0x5158e0
xor eax, eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc1], eax
mov dword [esp + 0xc5], eax
mov dword [esp + 0xc9], eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov dword [esp + 0xd9], eax
mov word [esp + 0xdd], ax
mov byte [esp + 0xdf], al
call fcn.0051e57d
add esp, 4
mov dword [esp + 0xcc00], 0
cmp dword [esp + 0xa4], 0x10
mov eax, dword [esp + 0x90]
jae 0x51514b
lea eax, [esp + 0x90]
lea edx, [esp + 0xbc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x515154
mov eax, dword [0x48b714]
mov ebx, dword [0x48b710]
mov dword [esp + 0x40], eax
xor eax, eax
push 0x1000
mov dword [esp + 0x38], 0x2501c4b6
mov edi, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x84], 0x1000
call fcn.00534468
mov esi, eax
add esp, 4
mov dword [esp + 0x7c], esi
mov word [esp + 0x8c], 0
mov byte [esp + 0xcc00], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov dword [esi], ecx
push 0x20
lea eax, [esp + 0xc0]
mov dword [esi + 4], edi
push eax
lea ecx, [esi + 0x10]
mov dword [esi + 8], ebx
push ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x94], edi
call fcn.00538d5d
add esp, 0xc
push 0x40
lea edx, [esi + 0x30]
push 0x48b720
push edx
mov dword [esp + 0x94], 0x30
call fcn.00538d5d
add esp, 0xc
push 0x24
lea eax, [esi + 0x70]
push 0x48b760
push eax
mov dword [esp + 0x94], 0x70
call fcn.00538d5d
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 0x104
push ecx
lea edx, [esi + 0x94]
push edx
mov dword [esp + 0x94], 0x94
call fcn.00538d5d
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [esi + 0x198], eax
push 0x104
lea edx, [esp + 0xe0]
push edx
lea eax, [esi + 0x1a0]
mov dword [esp + 0x90], 0x198
push eax
mov dword [esi + 0x19c], ecx
mov dword [esp + 0x94], 0x1a0
call fcn.00538d5d
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
add esp, 0xc
push 0x40
mov dword [esi + 0x2a4], ecx
push edx
add esi, 0x2a8
mov dword [esp + 0x90], 0x2a4
push esi
mov dword [esp + 0x94], 0x2a8
call fcn.00538d5d
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x88], 0x2e8
mov dword [esp + 0x1c], 0
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call fcn.0051dfed
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x88]
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0051d9dd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x51537f
mov dword [esp + 0x14], 0x20002738
mov byte [esp + 0xcc00], 0
lea esi, [esp + 0x7c]
call fcn.0051de4d
mov dword [esp + 0xcc00], 0xffffffff
cmp dword [esp + 0xa4], edi
jb 0x51535c
mov edx, dword [esp + 0x90]
push edx
call fcn.00534bf3
add esp, 4
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
jmp 0x5158e0
mov byte [esp + 0xcc00], 0
lea esi, [esp + 0x7c]
call fcn.0051de4d
push 0x47ff
lea eax, [esp + 0x3f1]
push 0
push eax
mov byte [esp + 0x3f8], 0
call fcn.00538cdd
mov edx, dword [esp + 0x60]
add esp, 0xc
lea ecx, [esp + 0x3ec]
push ecx
push edx
call fcn.0051db5d
mov edi, eax
add esp, 8
test edi, edi
je 0x5158c1
cmp edi, 0x2746
je 0x5158c1
or ebx, 0xffffffff
cmp edi, ebx
jne 0x5153f5
mov dword [esp + 0x14], 0x20002738
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
mov eax, 0xc4b6
cmp ax, word [esp + 0x3ec]
je 0x515418
mov dword [esp + 0x14], 0x20002735
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
cmp byte [esp + 0x3ee], 1
je 0x515436
mov dword [esp + 0x14], 0x20002736
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
mov al, byte [esp + 0x3ef]
cmp al, 0x26
je 0x515470
cmp al, 0xff
jne 0x51545c
mov ecx, dword [esp + 0x3fc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
mov dword [esp + 0x14], 0x20002737
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
lea esi, [esp + 0x5c]
call fcn.0051ddbd
mov byte [esp + 0xcc00], 6
lea edx, [esp + 0x3ec]
push edx
mov eax, esi
call fcn.0051df3d
mov ecx, dword [esp + 0x3f0]
lea eax, [esp + 0x20]
push eax
push ecx
mov edx, esi
push edx
mov edx, 0x10
lea ecx, [esp + 0xc8]
mov dword [esp + 0x2c], 0
call fcn.0051e28d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
lea ecx, [eax + ecx + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
cmp eax, 0x2fffffff
jne 0x515506
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
cmp dword [edx + eax + 0x20], 2
jne 0x515506
mov dword [esp + 0x30], 1
mov byte [esp + 0xcc00], 0
lea esi, [esp + 0x5c]
call fcn.0051de4d
mov dword [esp + 0xcc00], ebx
jmp 0x5158d4
cmp dword [ecx], 0x2fffffff
jne 0x515888
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov esi, dword [eax + ecx + 0x10]
test esi, esi
jle 0x515888
lea eax, [eax + ecx + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 4]
test eax, eax
jl 0x515573
jg 0x51553e
cmp ecx, 0x64
jb 0x515553
push 0
push 0x64
push eax
push ecx
call fcn.0053b1dd
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jmp 0x515583
test eax, eax
jl 0x515573
jg 0x51555e
cmp ecx, 2
jb 0x515573
push 0
push 2
push eax
push ecx
call fcn.0053b1dd
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jmp 0x515583
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
push 0
push 1
push 2
call dword [0x454250]
mov edi, eax
mov dword [esp + 0x50], edi
cmp edi, ebx
jne 0x5155a6
mov dword [esp + 0x14], 0x20002739
jmp 0x5154e9
mov ecx, 2
push 0x48b85c
mov word [esp + 0x80], cx
call dword [0x454268]
push esi
mov dword [esp + 0x84], eax
call dword [0x454258]
mov esi, dword [0x454254]
push 4
lea edx, [esp + 0x50]
push edx
push 0x1005
push 0xffff
push edi
mov word [esp + 0x92], ax
mov dword [esp + 0x60], 0xea60
call esi
cmp eax, ebx
jne 0x515607
mov dword [esp + 0x14], 0x2000273d
jmp 0x5154e9
push 4
lea eax, [esp + 0x50]
push eax
push 0x1006
push 0xffff
push edi
call esi
cmp eax, ebx
jne 0x51562c
mov dword [esp + 0x14], 0x2000273d
jmp 0x5154e9
push 0x10
lea ecx, [esp + 0x80]
push ecx
push edi
call dword [0x45426c]
test eax, eax
je 0x51564e
mov dword [esp + 0x14], 0x20002733
jmp 0x5154e9
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
lea eax, [edx + eax + 0x20]
xor esi, esi
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov dword [esp + 0x78], esi
cmp eax, esi
jne 0x515674
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jmp 0x515685
cmp eax, 1
jne 0x515685
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.0053b1dd
cdq
push edx
push eax
call fcn.00515abd
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
sub edi, esi
mov eax, edi
cdq
and edx, 0x7fff
lea ebx, [edx + eax]
mov ecx, edi
add esp, 8
sar ebx, 0xf
and ecx, 0x80007fff
mov dword [esp + 0x74], edi
jns 0x5156d6
dec ecx
or ecx, 0xffff8000
inc ecx
je 0x5156d9
inc ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x5156f2
push 0x460bf8
lea eax, [esp + 0x1e8]
push eax
jmp 0x515708
cmp eax, 1
jne 0x51587d
push 0x460c00
lea ecx, [esp + 0x1e8]
push ecx
call fcn.00535551
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x51587d
test ebx, ebx
jle 0x515861
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 1
jmp 0x51573d
push 0x8000
lea edx, [esp + 0x4bf0]
push 0
push edx
call fcn.00538cdd
add esp, 0xc
cmp dword [esp + 0x1c], ebx
jne 0x51576b
mov eax, ebx
shl eax, 0xf
mov esi, edi
sub esi, eax
add esi, 0x8000
jmp 0x515770
mov esi, 0x8000
xor edi, edi
test esi, esi
jle 0x5157b7
lea esp, [esp]
mov edx, dword [esp + 0x50]
push 0
push esi
lea ecx, [esp + edi + 0x4bf4]
push ecx
push edx
call dword [0x454264]
test eax, eax
je 0x515857
cmp eax, 0x2746
je 0x515857
cmp eax, 0xffffffff
je 0x515857
sub esi, eax
add edi, eax
test esi, esi
jg 0x51577d
cmp dword [esp + 0x14], 0x2fffffff
jne 0x515885
mov ecx, dword [esp + 0x24]
mov eax, edi
cdq
add ecx, eax
mov eax, dword [esp + 0x28]
adc eax, edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
call fcn.0053b1dd
test eax, eax
jle 0x5157fc
cdq
push edx
push eax
call fcn.00515abd
add esp, 8
call fcn.00515d5d
mov byte [esp + 0x1b], al
test al, al
jne 0x515873
cmp dword [esp + 0x1c], ebx
jne 0x515821
mov eax, dword [esp + 0x2c]
push eax
push 1
push edi
lea ecx, [esp + 0x4bf8]
push ecx
jmp 0x515835
mov edx, dword [esp + 0x2c]
push edx
push 1
push 0x8000
lea eax, [esp + 0x4bf8]
push eax
call fcn.00536715
mov eax, dword [esp + 0x30]
inc dword [esp + 0x2c]
inc eax
add esp, 0x10
mov dword [esp + 0x20], eax
cmp eax, ebx
jge 0x515873
mov edi, dword [esp + 0x74]
jmp 0x51573d
mov dword [esp + 0x14], 0x2000273b
jmp 0x515885
cmp dword [esp + 0x14], 0x2fffffff
mov dword [esp + 0x30], 1
jne 0x515885
mov dword [esp + 0x30], 0
jmp 0x515885
mov dword [esp + 0x14], 0x20007584
or ebx, 0xffffffff
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
cmp dword [edx + ecx + 0x20], 4
jne 0x5154e9
lea eax, [esp + 0x1e4]
push 0x460c00
push eax
call fcn.00535551
add esp, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
jmp 0x5154e9
mov dword [esp + 0x14], 0x2000273b
mov dword [esp + 0xcc00], 0xffffffff
lea ecx, [esp + 0x90]
call fcn.005095fd
push 0x64
call dword [0x454080]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5158f9
push eax
call fcn.00535abf
add esp, 4
mov ecx, dword [esp + 0x50]
mov esi, dword [0x45424c]
push ecx
call esi
mov edx, dword [esp + 0x54]
push edx
call esi
mov esi, dword [esp + 0x30]
test esi, esi
je 0x515921
cmp esi, 1
jne 0x51596c
cmp dword [esp + 0x48], 2
jne 0x51596c
cmp byte [esp + 0x1b], 0
jne 0x51596c
push 0x48b2d8
call fcn.00536520
add esp, 4
lea eax, [esp + 0x1e4]
push 0x48b2d8
push eax
call fcn.0053678f
add esp, 8
test eax, eax
je 0x515958
mov dword [esp + 0x14], 0x20007584
jmp 0x51596c
push 0
push 0x64
call fcn.00515abd
add esp, 8
mov dword [esp + 0x14], 0x2fffffff
call fcn.00515c2d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov dword [edx], ecx
mov eax, esi
mov ecx, dword [esp + 0xcbf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcbe0]
xor ecx, esp
call fcn.00534473
mov esp, ebp
pop ebp
ret