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

Disassembly:
push 0xffffffffffffffff
push 0x647958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [esp + 0xa0]
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.00564370
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0xbc]
xor edi, edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x68], 0x65540c
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
add eax, dword [esp + 0x80]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
mov dword [esp + 0x90], edi
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x20], bl
mov byte [esp + 0x2c], bl
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x30], edi
jbe 0x519f6a
jmp 0x519c57
mov ebp, dword [esp + 0x9c]
cmp edi, eax
jbe 0x519c60
call fcn.0061c63f
cmp dword [ebp + 0x18], 0x10
jb 0x519c6b
mov eax, dword [ebp + 4]
jmp 0x519c6e
lea eax, [ebp + 4]
mov al, byte [eax + edi]
cmp al, 0x7b
mov byte [esp + 0x20], al
jne 0x519d4f
mov ecx, ebp
call fcn.004042d0
mov ebp, eax
add ebp, edi
lea eax, [ebp + 1]
push 0x7d
push eax
mov dword [esp + 0x3c], eax
call fcn.0061c6a0
add esp, 8
test eax, eax
je 0x519d6e
sub eax, ebp
lea edi, [edi + eax + 1]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ebp, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
sub eax, ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0x50], ecx
call fcn.005197b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x84], edx
mov esi, dword [eax]
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 8
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x34], eax
call edx
mov ebp, eax
mov eax, dword [esp + 0x34]
sub ebp, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
add eax, dword [esp + 0x80]
sub ebp, dword [esp + 0x38]
mov dword [esp + 0x24], eax
add dword [esp + 0x14], ebp
jmp 0x519f58
cmp al, 0x20
je 0x519d65
test byte [esp + 0x84], 1
je 0x519e73
cmp al, 0xa
jne 0x519d6e
mov dword [esp + 0x18], edi
mov byte [esp + 0x20], 0x20
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x24]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x28]
mov dl, byte [esp + 0x20]
add ecx, eax
cmp ecx, dword [ebp + 8]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], dl
jle 0x519f55
cmp dword [esp + 0x18], 0xffffffff
je 0x519ebb
mov eax, dword [esp + 0x98]
fld dword [eax + 0xc]
mov edi, dword [ebp + 4]
call fcn.006397d0
mov edx, dword [esp + 0x98]
mov ecx, dword [edx + 0x24]
add eax, edi
add eax, dword [esp + 0x14]
cmp eax, ecx
jl 0x519e38
mov edx, dword [edx + 0x2c]
add edx, ecx
add edx, dword [esp + 0x24]
cmp eax, edx
jge 0x519e38
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, ebx
add edi, ecx
mov ecx, dword [ebp]
lea edx, [eax + ebx]
cmp edx, dword [esp + 0x1c]
jle 0x519e03
mov eax, dword [esp + 0x1c]
sub eax, ebx
test eax, eax
jle 0x519e38
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xb0]
push ebx
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [esp + 0xa8]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ecx
mov ecx, dword [esp + 0xbc]
push ecx
push edx
call fcn.00519870
add esp, 0x28
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x519f71
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x9c]
add edi, 1
cmp byte [esp + 0x20], 0xa
je 0x519f2a
mov edx, dword [ebp + 0x14]
cmp edi, edx
jae 0x519f2a
cmp dword [ebp + 0x18], 0x10
jb 0x519e98
mov ecx, dword [ebp + 4]
jmp 0x519e9b
cmp al, 0xa
jne 0x519d6e
mov ebp, dword [esp + 0xa0]
mov eax, dword [ebp + 8]
add eax, 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], eax
add edi, 1
jmp 0x519d75
lea ecx, [ebp + 4]
mov cl, byte [ecx + edi]
cmp cl, 0x20
je 0x519eb2
test byte [esp + 0x84], 1
je 0x519f2a
cmp cl, 0xa
jne 0x519f2a
add edi, 1
cmp edi, edx
jb 0x519e68
jmp 0x519f2a
lea eax, [ebx + 1]
cmp edi, eax
jge 0x519ec5
add edi, 1
mov ecx, dword [ebp + 4]
add ecx, dword [esp + 0x14]
mov eax, edi
sub eax, ebx
lea edx, [eax + ebx]
cmp edx, dword [esp + 0x1c]
jle 0x519ee7
mov eax, dword [esp + 0x1c]
sub eax, ebx
test eax, eax
jle 0x519f71
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xb0]
push ebx
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [esp + 0xa8]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebp]
push ecx
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push edx
call fcn.00519870
add esp, 0x28
test eax, eax
jl 0x519f71
mov ebp, dword [esp + 0x9c]
cmp eax, dword [esp + 0x30]
jle 0x519f34
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov ebx, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
jmp 0x519f5f
add edi, 1
mov ebp, dword [esp + 0x9c]
mov eax, dword [ebp + 0x14]
cmp edi, eax
jb 0x519c50
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jge 0x519fe1
mov ecx, dword [ebp + 4]
add ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov ebp, dword [ebp]
sub eax, ebx
lea edi, [eax + ebx]
cmp edi, dword [esp + 0x1c]
jle 0x519fa1
mov eax, dword [esp + 0x1c]
sub eax, ebx
test eax, eax
jle 0x519ff0
push eax
mov eax, dword [esp + 0xb0]
push ebx
push eax
mov eax, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xac]
push edx
lea edx, [esp + 0x7c]
push edx
push ecx
mov ecx, dword [esp + 0xb4]
push ebp
push eax
push ecx
call fcn.00519870
add esp, 0x28
test eax, eax
jl 0x519ff0
mov edx, dword [esp + 0x24]
add dword [esp + 0x14], edx
jmp 0x519ff0
cmp byte [esp + 0x20], 0xa
jne 0x519ff0
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x24]
add esi, eax
cmp dword [esp + 0x64], 0x10
jb 0x51a019
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret