Function at 0x516710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx + 0x138]
mov dword [esp + 0x58], ecx
lea ecx, [edx + 0xa8]
mov dword [esp + 4], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x9c], ecx
mov eax, dword [eax]
mov dword [esp + 0x90], eax
add eax, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
nop word [eax + eax]
cmp bl, 0x4c
jne 0x516b45
mov ebx, dword [esp + 4]
test byte [ebx], 1
je 0x516bc0
mov eax, dword [ebx + 0xe0]
test eax, eax
mov dword [esp + 0x98], eax
je 0x516794
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x94], eax
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xf0]
movsd xmm0, qword [ebx + 8]
mov edx, dword [ebx + 0xc4]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x64], edx
add eax, 8
lea edx, [esp + 0x60]
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x8c], 0
call sym.gimli::read::unit::EntriesCursor_LT_R_GT_::next_entry::h9eaf7319221d4097
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x516830
mov eax, dword [esp + 0x70]
test eax, eax
je 0x516853
cmp word [ebx + 0xca], 5
mov edi, dword [esp + 0x78]
mov edx, 0x76
mov ecx, 0x2130
cmovb edx, ecx
mov ecx, dword [esp + 0x74]
test byte [edi], 1
mov dword [esp + 0xc], edx
je 0x516862
mov ebx, dword [edi + 0xc]
mov edi, dword [edi + 8]
jmp 0x516871
movzx ecx, word [esp + 0x16]
movzx edx, byte [esp + 0x11]
mov edi, dword [esp + 0x12]
mov esi, dword [esp + 0x1c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x516ad0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov al, 0x42
jmp 0x516ad0
mov ebx, dword [edi + 4]
cmp ebx, 6
jae 0x516cbf
add edi, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
test ebx, ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], ecx
je 0x516997
add edi, 0x10
dec ebx
nop dword [eax]
cmp ebx, 0xffffffff
je 0x5169b9
lea eax, [edi - 0x10]
lea ecx, [esp + 0x10]
lea esi, [esp + 0xa0]
lea edx, [esp + 0x40]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x50]
movsd qword [esp + 0xa8], xmm1
movsd qword [esp + 0xa0], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call sym.gimli::read::unit::parse_attribute::hdd3cf4e0ff72c012
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x516a91
mov edx, dword [esp + 0x18]
movzx esi, word [esp + 0x20]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
add edi, 0x10
dec ebx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x1c]
cmp si, word [esp + 0xc]
mov esi, dword [esp + 0x22]
mov dword [esp + 0x34], edx
movzx edx, word [esp + 0x26]
jne 0x5168a0
mov word [esp + 0x26], dx
mov dword [esp + 0x22], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov word [esp + 0x20], ax
call sym.gimli::read::unit::Attribute_LT_R_GT_::value::h43a21af532bb1013
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov edi, edx
shld edx, ecx, 0x10
mov dword [esp + 8], ecx
shr edi, 0x10
mov dword [esp + 0xc], eax
mov al, ch
jmp 0x5169e3
test byte [esp + 0x84], 1
jne 0x5169d3
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0
jmp 0x5169d3
mov eax, dword [esp + 0x50]
test byte [eax + 0x14], 1
jne 0x5169d3
mov ecx, dword [esp + 0x40]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov ebx, dword [esp + 4]
mov cl, 0x2e
xor eax, eax
xor edi, edi
xor edx, edx
mov dword [esp + 8], ecx
movzx esi, al
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 8]
mov ecx, edx
mov dword [esp + 0x3c], edx
shl ecx, 0x10
shl esi, 8
or esi, ecx
mov ecx, edi
shld ecx, edx, 0x10
or eax, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
xor eax, 0x2e
or eax, ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x516c36
movzx eax, byte [ebx + 0xc9]
mov edx, dword [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 8], edi
lea ecx, [esp + 0x60]
push esi
push dword [ebx + 0xf4]
push eax
call sym.gimli::read::dwarf::Dwarf_LT_R_GT_::attr_string::h2e2835e0fe0b4cd2
add esp, 0xc
movzx eax, byte [esp + 0x60]
cmp al, 0x4b
je 0x516c3a
movzx edx, byte [esp + 0x63]
mov edi, dword [esp + 0x6c]
movzx ecx, word [esp + 0x61]
mov esi, dword [esp + 0x68]
shl edx, 0x10
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x3c]
or ecx, edx
mov edx, dword [esp + 0x64]
movzx ebx, byte [ebx + 0x138]
cmp bl, 0x4c
jne 0x516760
jmp 0x516b02
movzx esi, word [esp + 0x26]
mov edx, dword [esp + 0x22]
movzx ecx, word [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 4]
shld esi, edx, 0x10
shl edx, 0x10
or edx, ecx
mov dword [esp + 0xc], edx
mov edx, edi
shld edi, eax, 0x10
shr edx, 0x10
mov dword [esp + 8], edx
mov dl, ah
nop word [eax + eax]
mov ecx, edi
mov dword [esp + 0x38], edx
movzx edx, dl
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xc]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 8]
shld edx, edi, 0x10
movzx ebx, byte [ebx + 0x138]
cmp bl, 0x4c
jne 0x516760
mov dword [esp + 0x3c], edi
mov edi, esi
mov esi, dword [esp + 4]
mov ebx, eax
mov byte [esi + 0x138], al
mov word [esi + 0x139], cx
shr ecx, 0x10
mov byte [esi + 0x13b], cl
mov dword [esi + 0x13c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edx
mov esi, edi
mov edi, dword [esp + 0x3c]
jmp 0x516760
movzx eax, bl
cmp eax, 0x4b
jne 0x516b77
mov ebx, dword [esp + 4]
xor ecx, ecx
mov eax, 0x4b
mov edx, dword [ebx + 0x13c]
test edx, edx
je 0x516bd8
mov esi, dword [edx]
add edx, 8
mov edi, 2
add esi, 8
mov dword [esp + 0x2c], esi
xor esi, esi
jmp 0x516bde
mov ebx, dword [esp + 4]
movzx esi, byte [ebx + 0x13b]
movzx edi, word [ebx + 0x139]
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx + 0x144]
shl edi, 8
shl esi, 0x18
mov dword [esp + 0x2c], ecx
movzx ecx, byte [ebx + 0x143]
or esi, edi
movzx edi, word [ebx + 0x141]
shl ecx, 0x18
shl edi, 8
or ecx, edi
movzx edi, byte [ebx + 0x140]
jmp 0x516bde
mov byte [ebx + 0x138], 0x4b
mov dword [ebx + 0x13c], 0
xor ecx, ecx
mov eax, 0x4b
xor esi, esi
xor edi, edi
mov edx, ebx
or eax, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ebx
or ecx, edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x58]
lea ecx, [esi + 0x10]
push eax
call sym.addr2line::ResUnit_LT_R_GT_::find_function_or_location::__u7b__u7b_closure_u7d__u7d_::hdebe26a81d668cec
add esp, 4
mov dword [esi + 0xc], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x516c46
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x90]
lock inc dword [edi]
jle 0x516cd0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x10]
movaps xmm1, xmmword [esp + 0xb0]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp + 0x10]
movsd qword [ecx + 8], xmm0
movsd qword [ecx], xmm2
movlps qword [ecx + 0x20], xmm1
mov dword [ecx + 0x28], esi
mov esi, dword [esp + 0x94]
mov dword [ecx + 0x2c], esi
mov esi, dword [esp + 0x5c]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
jmp 0x516c2e
mov ecx, ebx
mov edx, 5
push 0x57a1c8
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
ud2