Function at 0x512b00
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x604df8
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x29c]
mov dword [esp + 0x34], ebx
call fcn.004ea3f0
xor edi, edi
mov dword [esp + 0x30], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
cmp dword [ebx + 8], edi
jle 0x5133f7
mov ecx, ebx
call fcn.004eefa0
movzx ecx, word [edi + eax]
lea ebx, [edi + eax]
mov dword [esp + 0x1c], ebx
cmp ecx, 0x102
jg 0x512e29
je 0x512ca1
dec ecx
cmp ecx, 0xb
ja case.0x512b9b.2
movzx eax, byte [ecx + 0x5134bc]
jmp dword [eax*4 + 0x5134ac]
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
cmp word [ebx + 4], 6
lea ecx, [ebx + 4]
ja 0x512bcf
cmp word [ebx + 6], 0xf
ja 0x512bcf
movzx eax, word [ebx + 8]
mov edx, 0xcb
cmp ax, dx
jb 0x513289
push ecx
call fcn.0050ef10
add esp, 4
mov byte [esi + 0x214], al
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x268]
mov dword [esp + 0x278], eax
lea edx, [esp + 0x278]
movzx eax, word [ebx + 8]
xorps xmm0, xmm0
mov word [esp + 0x27c], ax
mov edi, 0xc
movzx eax, word [ebx + 0xa]
mov word [esp + 0x27e], ax
mov eax, dword [ebx + 0xc]
movq qword [esp + 0x280], xmm0
mov dword [esp + 0x280], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x284], eax
movq qword [esp + 0x270], xmm0
mov dword [esp + 0x20], 0x780
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 0x61516bc0
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x268], 0x20000
mov dword [esp + 0x26c], 0x11010000
mov dword [esp + 0x274], eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x51347d
add ecx, 4
add edx, 4
sub edi, 4
jae 0x512c82
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x51325e
push 0
lea eax, [esp + 0x264]
xorps xmm0, xmm0
push eax
mov eax, dword [esp + 0x38]
push 0
push dword [ebx + 4]
movlpd qword [esp + 0x270], xmm0
push dword [esi + 0x14]
mov eax, dword [eax + 0x354]
call eax
mov ecx, dword [esp + 0x260]
mov eax, dword [esp + 0x264]
mov dword [esi + 0x228], ecx
mov dword [esi + 0x22c], eax
cmp ecx, dword [ebx + 4]
jne 0x512e1f
mov eax, dword [esi + 0x240]
lea edi, [esi + 0x74]
shr eax, 2
mov dword [esp + 0x25c], 0
test al, 1
je 0x512d2f
mov ecx, 0x1000
cmp dword [ebx + 8], ecx
cmovb ecx, dword [ebx + 8]
cmp ecx, dword [edi + 0xc]
jbe 0x512d2a
push ecx
cmp dword [edi + 8], 0
mov ecx, edi
je 0x512d3a
call fcn.004fe220
jmp 0x512d46
mov dword [edi + 8], ecx
jmp 0x512d46
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0xc]
jbe 0x512d43
push eax
jmp 0x512d1b
push 0
call fcn.004f3510
jmp 0x512d46
mov dword [edi + 8], eax
mov eax, dword [ebx + 8]
mov ecx, eax
mov dword [esi + 0x218], eax
add ecx, 0xfff
push 0
mov dword [esi + 0x21c], 0
mov eax, dword [esi + 0x21c]
push 0x1000
adc eax, 0
push eax
push ecx
call fcn.005e2030
cmp eax, dword [esi + 0xa4]
lea ebx, [esi + 0x98]
jbe 0x512d9f
cmp dword [ebx + 8], 0
mov ecx, ebx
push eax
je 0x512d96
call fcn.005109c0
jmp 0x512da2
push 0
call fcn.00513d30
jmp 0x512da2
mov dword [ebx + 8], eax
mov ebp, 0x1000
cmp dword [esi + 0x7c], ebp
cmovb ebp, dword [esi + 0x7c]
cmp dword [edi + 8], 0
je 0x512db9
mov eax, dword [edi + 4]
jmp 0x512dbb
xor eax, eax
push 0
lea ecx, [esp + 0x260]
push ecx
push ebp
push eax
mov eax, dword [esp + 0x40]
push dword [esi + 0x14]
mov eax, dword [eax + 0x34c]
call eax
test eax, eax
setne al
test al, al
je 0x5132d8
cmp dword [esi + 0xa0], 0
je 0x512e13
mov eax, dword [ebx + 4]
mov byte [eax], 1
cmp dword [esi + 0x7c], 0x10
jb 0x512e13
cmp dword [edi + 8], 0
je 0x512e03
mov ecx, dword [edi + 4]
jmp 0x512e05
xor ecx, ecx
mov eax, dword [ebx + 4]
movdqu xmm0, xmmword [ecx + ebp - 0x10]
movdqu xmmword [eax + 1], xmm0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
cmp ecx, 0x4004
jg 0x513111
je 0x512e6e
sub ecx, 0x104
je 0x512e5b
sub ecx, 4
jne case.0x512b9b.2
mov eax, dword [ebx + 4]
inc ebp
mov dword [esi + 0x238], eax
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
mov eax, dword [ebx + 4]
inc ebp
mov dword [esi + 0x23c], eax
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
movzx eax, word [ebx + 2]
lea edi, [ebx + 4]
sub eax, 4
lea ebp, [esi + 0xbc]
push eax
push edi
mov ecx, ebp
call fcn.004f3510
mov eax, dword [edi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x51308d
cmp word [ebx + 2], 8
jbe 0x513103
cmp dword [esi + 0x260], 0x10
lea eax, [esi + 0x24c]
mov dword [esp + 0x2c], eax
mov dword [eax + 0x10], 0
jb 0x512ebc
mov eax, dword [eax]
push 0x4cac98
lea ecx, [esp + 0x80]
mov byte [eax], 0
call fcn.004e5a00
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x88]
mov dword [esp + 0x29c], 2
push eax
lea ecx, [esi + 0x24c]
call fcn.004ecec0
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x7c], 0x4ca328
jb 0x512f1e
push dword [esp + 0x80]
call fcn.005df995
add esp, 4
mov eax, dword [edi + 4]
lea ebx, [edi + 8]
xor edi, edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x25c], edi
test eax, eax
jle 0x513065
jmp 0x512f60
push 0x18c
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.005e0f30
add esp, 0xc
lea ecx, [esp + 0xd0]
call fcn.0050d2c0
lea eax, [esp + 0x238]
mov dword [esp + 0x294], 3
cmp ebp, eax
je 0x512fb5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x512fa5
mov eax, dword [ebp + 4]
jmp 0x512fa7
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x240]
call fcn.004f3510
push ebx
lea ecx, [esp + 0xd4]
call fcn.00511c30
test al, al
je 0x51335c
add ebx, dword [esp + 0xd0]
mov eax, dword [0x637928]
test eax, eax
jne 0x513025
push 0x34
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x260], edi
mov byte [esp + 0x294], 4
test edi, edi
je 0x51300f
push 0x34
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.00509b30
jmp 0x513011
xor eax, eax
mov edi, dword [esp + 0x25c]
mov byte [esp + 0x294], 3
mov dword [0x637928], eax
lea ecx, [esp + 0xd0]
push ecx
mov ecx, eax
call fcn.00511070
test al, al
je 0x51335c
lea ecx, [esp + 0xd0]
mov dword [esp + 0x294], 0xffffffff
call fcn.00509da0
inc edi
mov dword [esp + 0x25c], edi
cmp edi, dword [esp + 0x28]
jl 0x512f60
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x513078
mov eax, dword [eax]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc ebp
mov byte [eax], 0
mov dword [esp + 0x14], ebp
jmp 0x51325e
lea edi, [ebx + 8]
xor ebx, ebx
test eax, eax
jle 0x5130ff
mov eax, dword [edi]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xe0]
push ecx
lea ecx, [esi + 0xe0]
mov dword [esp + 0x30], eax
push dword [eax + 4]
push eax
call fcn.0050bb70
mov edx, eax
mov ecx, 0xccccccb
mov eax, dword [esi + 0xe4]
sub ecx, eax
cmp ecx, 1
jb 0x51337c
lea ecx, [eax + 1]
inc ebx
mov eax, dword [esp + 0x2c]
add edi, 0xc
mov dword [esi + 0xe4], ecx
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp ebx, dword [esp + 0x28]
jl 0x513096
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x51325e
sub ecx, 0x4008
je 0x5131a0
dec ecx
jne case.0x512b9b.2
cmp dword [esi + 0x58], ecx
je 0x51312e
mov ecx, dword [esi + 0x54]
jmp 0x513130
xor ecx, ecx
push dword [esi + 0x58]
lea eax, [ebx + 4]
push eax
push ecx
call fcn.005e08e0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, ecx
shr eax, 0x10
test al, 1
je 0x513158
shr ecx, 0x11
test cl, 1
je case.0x512b9b.1
cmp dword [esi + 0x58], 0
je 0x513163
mov ecx, dword [esi + 0x54]
jmp 0x513165
xor ecx, ecx
push 0
lea eax, [esi + 0x230]
push eax
push dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 8]
call fcn.004ff6a0
test al, al
je 0x513386
call fcn.004ea590
mov ecx, dword [esi + 8]
add eax, 4
push eax
add ecx, 4
call fcn.0050e2e0
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x512b9b.2
mov eax, dword [ebx + 4]
mov dword [esi + 0x230], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x234], eax
test byte [ebx + 0x10], 1
je 0x5131bf
or dword [esi + 0xc], 0x10000
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [esi + 0x5c]
jbe 0x5131e1
cmp dword [esi + 0x58], 0
push ecx
lea ecx, [esi + 0x50]
je 0x5131d8
call fcn.004fe220
jmp 0x5131e4
push 0
call fcn.004f3510
jmp 0x5131e4
mov dword [esi + 0x58], ecx
inc ebp
test byte [esi + 0xe], 1
mov dword [esp + 0x14], ebp
je 0x513210
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.0050a300
mov ecx, eax
call fcn.0050ea00
test al, al
je case.0x512b9b.2
or dword [esi + 0xc], 0x20000
jmp case.0x512b9b.2
push 0x570
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x260], edi
mov dword [esp + 0x294], 5
test edi, edi
je 0x51324e
push 0x570
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.004e6d80
jmp 0x513250
xor eax, eax
mov dword [esp + 0x294], 0xffffffff
mov dword [esi + 8], eax
mov edi, dword [esp + 0x18]
movzx eax, word [ebx + 2]
mov ebx, dword [esp + 0x34]
add edi, eax
mov dword [esp + 0x18], edi
cmp edi, dword [ebx + 8]
jl 0x512b66
cmp ebp, 0xb
jne 0x5133f7
mov al, 1
jmp 0x51347f
or dword [esi + 0xc], 0x20
lea ecx, [esi + 0x248]
call fcn.004ed3b0
push 0x4cac28
lea ecx, [esp + 0xb8]
call fcn.004e5a00
lea eax, [esp + 0xb4]
mov dword [esp + 0x294], 0
push eax
lea ecx, [esi + 0x248]
call fcn.004e8a00
lea ecx, [esp + 0xb4]
call fcn.00543f30
jmp 0x51347d
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x5132f1
mov eax, dword [eax]
mov byte [eax], 0
lea ecx, [esp + 0x48]
push 0x2f
push 0x4cac68
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.004ed2b0
mov dword [esp + 0x44], 0x4ca328
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x29c], 1
push eax
lea ecx, [esi + 0x24c]
call fcn.004ecec0
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0x4ca328
jb 0x51347d
push dword [esp + 0x48]
jmp 0x513475
or dword [esi + 0xc], 0x20
lea ecx, [esp + 0xd0]
mov dword [esp + 0x294], 0xffffffff
call fcn.00509da0
jmp 0x51347d
push 0x4ca6bc
call fcn.005dba74
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x51339f
mov eax, dword [eax]
push 0x4cacc8
lea ecx, [esp + 0x9c]
mov byte [eax], 0
call fcn.004e5a00
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
mov dword [esp + 0x29c], 6
push eax
lea ecx, [esi + 0x24c]
call fcn.004ecec0
cmp dword [esp + 0xb0], 0x10
mov dword [esp + 0x98], 0x4ca328
jb 0x51347d
push dword [esp + 0x9c]
jmp 0x513475
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x513410
mov eax, dword [eax]
push 0x30
push 0x4cad08
lea ecx, [esp + 0x6c]
mov byte [eax], 0
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.004ed2b0
mov dword [esp + 0x60], 0x4ca328
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x29c], 7
push eax
lea ecx, [esi + 0x24c]
call fcn.004ecec0
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x60], 0x4ca328
jb 0x51347d
push dword [esp + 0x64]
call fcn.005df995
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.005e0482
add esp, 0x284
ret 4