Function at 0x51f91b
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, esp
mov dword [esi + 0xb0], ebp
lea eax, [esi + 0xb8]
mov dword [esi + 0x30], ecx
mov dword [esi + 0xc], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5865a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov eax, dword [ebp + 0xc]
and dword [esi + 0x3c], 0
and dword [esi + 0x38], 0
and dword [esi + 0x44], 0
mov ecx, edx
mov dword [esi + 0x40], eax
call fcn.0051f584
mov dword [esi + 0x58], eax
xor eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], edx
and dword [esi + 0x54], 0
and dword [esi + 0x50], 0
or eax, edx
jne 0x51fdaa
lea eax, [esi + 0x7c]
mov edx, dword [esi + 0xc]
mov dword [esi + 0xc0], 1
lea ecx, [esi + 0x38]
and dword [eax - 4], 0
mov dword [eax], 0x80000001
lea eax, [esi + 0x78]
push eax
push 0
call fcn.005200c8
pop eax
pop ecx
and dword [esi + 0xc0], 0
lea ecx, [esi + 0x7c]
call fcn.00529e48
cmp dword [esi + 0x38], 0
je 0x51fa21
lea edx, [esi + 0x3c]
lea ecx, [esi + 0x78]
call fcn.0051fe6c
mov eax, dword [esi + 0x78]
movsd xmm0, qword [esi + 0x88]
movsd xmm2, qword [esi + 0x90]
movsd xmm1, qword [esi + 0x98]
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov ebx, dword [esi + 0x84]
cmp eax, 6
movsd qword [esi + 0x50], xmm0
movsd qword [esi + 0x58], xmm2
movsd qword [esi + 0x60], xmm1
jne 0x51fc3c
mov dword [esi], ebx
jmp 0x51fa2c
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [esi], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x78]
mov dword [esi + 0xc0], 2
call fcn.00520068
cmp byte [esi + 0x7d], 3
je 0x51fdc5
cmp byte [esi + 0x7c], 3
mov edx, dword [esi + 0x1c]
mov eax, dword [esi]
jne 0x51fc35
shr eax, 2
mov dword [esi + 0x14], edx
xor edx, edx
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
inc edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x10], eax
call fcn.005720fb
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov dword [esi + 8], edx
mov edx, dword [esi + 4]
mov dword [esi + 0xc0], 3
mov ecx, eax
and ecx, 0xfffffffc
push 0x5c85ac
push eax
call fcn.00419322
pop ecx
pop edi
mov dword [esi + 0x28], eax
mov dword [esi], edx
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x34]
push 0x5c85bc
push ecx
call fcn.00419322
pop ecx
pop edi
mov dword [esi + 0x24], eax
mov ebx, dword [esi]
and ebx, 0xfffffffc
push 3
pop ecx
mov eax, edx
mov edi, edx
xor edx, edx
div ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x38]
mov dword [edx], ecx
add ecx, ebx
and eax, 3
mov dword [edx + 4], ebx
lea ebx, [esi + 0x50]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
sub edi, eax
mov ecx, edx
add ecx, edi
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
lea edx, [esi + 0x38]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], 3
lea ecx, [esi + 0x78]
mov dword [edx + 0x10], 4
push ebx
call fcn.0046ac41
pop eax
mov ebx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0x94]
mov edi, dword [esi + 0x88]
mov ecx, ebx
mov dword [esi + 0x70], edx
mov dword [esi + 0x6c], edi
imul ecx, edx
lea edx, [ecx + eax + 2]
mov ecx, dword [esi + 0x78]
mov eax, ebx
imul eax, edi
lea eax, [eax + ecx + 3]
mov ecx, dword [esi + 0xa4]
mov dword [esi], eax
mov eax, edi
mov dword [esi + 0x74], ecx
cmp ebx, dword [esi + 0x74]
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0x34]
jae 0x51fc6c
test eax, eax
je 0x51fcdc
cmp eax, 1
je 0x51fcfa
cmp eax, 2
jbe 0x51fd19
cmp eax, 3
je 0x51fd38
mov ecx, dword [esi]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edx
mov edx, 0xff
movzx eax, byte [ecx - 2]
movzx edi, byte [ecx - 1]
movzx ebx, byte [ecx]
mov dword [esi], ecx
mov cx, 0xff
xor eax, 0xff
xor edi, edx
xor ebx, edx
xor edx, edx
movzx eax, ax
imul edi, ebx
imul eax, ebx
div cx
mov word [esi + 0x24], ax
mov eax, edi
xor edx, edx
mov di, 0xff
div di
mov edi, dword [esi + 0x70]
test edi, edi
je 0x51fd57
mov word [esi + 0x2e], ax
mov eax, dword [esi]
movzx eax, byte [eax - 3]
xor eax, 0xff
movzx edx, ax
movzx eax, bx
imul eax, edx
xor edx, edx
div cx
mov edx, dword [esi + 0x28]
cmp edi, 1
mov byte [edx - 2], al
je 0x51fd72
movzx eax, word [esi + 0x24]
cmp edi, 2
mov byte [edx - 1], al
jbe 0x51fd8e
movzx eax, word [esi + 0x2e]
mov ebx, dword [esi + 0x20]
mov byte [edx], al
mov eax, dword [esi + 0x6c]
add edx, edi
inc ebx
add dword [esi], eax
jmp 0x51fb62
mov edi, eax
mov eax, dword [esi + 4]
jmp 0x51fc84
mov edi, ecx
movsd xmm0, qword [esi + 0x60]
mov ecx, dword [esi + 0x30]
movsd xmm2, qword [esi + 0x50]
movsd xmm1, qword [esi + 0x58]
movsd qword [ecx + 0x20], xmm0
movsd qword [ecx + 0x18], xmm1
movsd qword [ecx + 0x10], xmm2
mov dword [ecx + 4], edx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
mov dword [ecx], eax
jmp 0x51fcb9
mov edx, dword [esi + 4]
call fcn.0041b0e1
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x18]
mov dword [esi + 0xc0], 2
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push 0x64cb38
push edi
push eax
call fcn.00451a03
add esp, 0xc
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [eax], 6
call fcn.0041b0e1
mov ecx, dword [esi + 0xc]
or dword [esi + 0xc0], 0xffffffff
call fcn.0051f5b2
mov eax, dword [esi + 0xb8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0xc0], 3
xor ecx, ecx
xor edx, edx
push 0x5c85cc
call fcn.0059a1e0
pop eax
jmp 0x51fde4
xor ecx, ecx
mov dword [esi + 0xc0], 3
inc ecx
mov edx, ecx
push 0x5c85dc
call fcn.0059a1e0
pop eax
jmp 0x51fde4
mov dword [esi + 0xc0], 3
push 2
pop ecx
mov edx, ecx
push 0x5c85ec
call fcn.0059a1e0
pop eax
jmp 0x51fde4
mov dword [esi + 0xc0], 3
push 3
pop ecx
mov edx, ecx
push 0x5c85fc
call fcn.0059a1e0
pop eax
jmp 0x51fde4
mov dword [esi + 0xc0], 3
xor ecx, ecx
xor edx, edx
push 0x5c860c
call fcn.0059a1e0
pop eax
jmp 0x51fde4
xor ecx, ecx
mov dword [esi + 0xc0], 3
inc ecx
mov edx, ecx
push 0x5c861c
call fcn.0059a1e0
pop eax
jmp 0x51fde4
mov dword [esi + 0xc0], 3
push 2
pop ecx
mov edx, ecx
push 0x5c862c
call fcn.0059a1e0
pop eax
jmp 0x51fde4
lea eax, [esi + 0x78]
lea ecx, [esi + 0x38]
lea edx, [esi + 0x50]
and dword [eax], 0
push 0x64cb18
push eax
call fcn.0059a8e7
pop eax
pop ecx
jmp 0x51fde4
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
push 0x64cb28
call fcn.0059a2a0
pop eax
ud2