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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x50], edx
movzx eax, byte [ecx + 0xc9]
mov edi, dword [ecx + 0xc4]
cmp al, 8
mov byte [esp + 0x24], al
mov eax, dword [ecx + 0xcc]
sete bl
lea edx, [eax + ebx*8 + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
sub edx, edi
mov esi, eax
sub esi, edx
setb dl
cmp esi, edi
mov esi, dword [ecx + 0xf0]
setae dh
or dh, dl
lea edx, [ecx + 0xa8]
mov dword [esp + 0x1c], esi
lea esi, [esi + 8]
jne 0x51bfc7
lea ecx, [ebx*8 + 4]
mov ebx, dword [esp + 8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov esi, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
sub eax, ecx
not esi
add esi, ecx
add esi, ebx
mov ecx, dword [ebp + 8]
sub eax, ebx
mov dword [esp + 0xc], esi
add edi, dword [ecx + 0xc0]
xor ecx, ecx
mov ebx, edi
nop word cs:[eax + eax]
nop
movzx edx, byte [ebx + eax]
cmp ecx, 0x3f
jne 0x51bf7e
cmp dl, 2
jae 0x51bfe0
mov byte [esp + 8], dl
xor edi, edi
mov esi, eax
mov eax, 0
movzx edx, byte [esp + 8]
and dl, 0x7f
movzx edx, dl
shld edi, edx, cl
shl edx, cl
test cl, 0x20
cmovne edi, edx
cmovne edx, eax
or dword [esp + 0x10], edx
movzx edx, byte [esp + 8]
or dword [esp + 0x14], edi
test dl, dl
jns 0x51bff9
dec dword [esp + 0xc]
mov eax, esi
add ecx, 7
inc eax
jne 0x51bf70
xor eax, eax
mov dh, 0x13
jmp 0x51bfe2
mov eax, dword [esp + 4]
mov dword [eax], 0x38
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0
jmp 0x51bff1
mov dh, 6
mov ecx, dword [esp + 4]
mov byte [ecx], dh
mov byte [ecx + 1], dl
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx + esi + 1]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
or esi, ecx
je 0x51c0e6
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x51c036
mov eax, dword [esp + 0x10]
dec eax
cmp eax, dword [ecx + 0x10]
jae 0x51c036
imul ebx, eax, 0x68
add ebx, dword [ecx + 0xc]
jmp 0x51c0fd
mov eax, dword [ecx + 0x14]
mov dh, 0x12
test eax, eax
je 0x51bfe2
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
movzx eax, word [eax + 0x4d6]
mov esi, 0xffffffff
lea ecx, [eax*8]
mov dword [esp + 0x4c], eax
nop word cs:[eax + eax]
nop
test ecx, ecx
je 0x51c0bf
mov eax, dword [esp + 0x18]
mov edi, dword [eax + esi*8 + 0xc]
mov edx, dword [eax + esi*8 + 8]
xor eax, eax
mov dword [esp + 0xc], edi
xor edi, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
xor edx, ebx
or edx, edi
mov edx, dword [esp + 0x14]
mov edi, 0xff
setne al
cmp ebx, dword [esp + 0x1c]
sbb edx, dword [esp + 0xc]
movzx edx, byte [esp + 8]
cmovb eax, edi
inc esi
add ecx, 0xfffffff8
cmp al, 1
je 0x51c070
movzx eax, al
test eax, eax
jne 0x51c0c3
jmp 0x51c0f2
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov dh, 0x12
sub eax, 1
jb 0x51bfe2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4 + 0x4d8]
jmp 0x51c04a
mov eax, dword [esp + 4]
mov byte [eax], 0x37
jmp 0x51bff1
mov ecx, dword [esp + 0x18]
imul eax, esi, 0x68
lea ebx, [ecx + eax + 0x58]
mov esi, dword [ebp + 8]
cmp byte [ebx + 0x62], 1
jne 0x51c10e
mov dword [esp + 0x64], 1
test byte [ebx], 1
mov ecx, dword [esp + 4]
je 0x51c126
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
test edi, edi
jne 0x51c13d
jmp 0x51c2e6
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x51c333
add ebx, 8
test edi, edi
je 0x51c2e6
mov eax, dword [esi + 0xf4]
shl edi, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
movzx eax, byte [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x51c1af
cmp eax, 3
je 0x51c24b
cmp eax, 0x31
jne 0x51c1a3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x68]
call sym.gimli::read::unit::Attribute_LT_R_GT_::value::h43a21af532bb1013
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
add ebx, 0x10
add edi, 0xfffffff0
je 0x51c2b0
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov eax, dword [esp + 0x5c]
lea esi, [esp + 0x28]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm0
push esi
push dword [eax + 0x20]
call sym.gimli::read::unit::parse_attribute::hdd3cf4e0ff72c012
add esp, 8
mov eax, dword [esp + 0x68]
xor eax, 0x2e
or eax, dword [esp + 0x6c]
je 0x51c292
movzx eax, word [esp + 0x78]
cmp eax, 0x46
jle 0x51c170
cmp eax, 0x47
je 0x51c17e
cmp eax, 0x6e
je 0x51c214
cmp eax, 0x2007
jne 0x51c1a3
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call sym.gimli::read::unit::Attribute_LT_R_GT_::value::h43a21af532bb1013
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0xc]
push dword [esp + 0x1c]
call sym.gimli::read::dwarf::Dwarf_LT_R_GT_::attr_string::h2e2835e0fe0b4cd2
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x51c1a3
jmp 0x51c2f5
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call sym.gimli::read::unit::Attribute_LT_R_GT_::value::h43a21af532bb1013
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0xc]
push dword [esp + 0x1c]
call sym.gimli::read::dwarf::Dwarf_LT_R_GT_::attr_string::h2e2835e0fe0b4cd2
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x51c1a3
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
jmp 0x51c1a3
movsd xmm0, qword [esp + 0x70]
mov eax, dword [esp + 4]
movsd xmm1, qword [esp + 0x78]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x51bff1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51c2ce
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov byte [eax], 0x4b
jmp 0x51bff1
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 8]
mov eax, edx
xor eax, 0x2e
or eax, ebx
jne 0x51c30f
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x51bff1
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov byte [edx], 0x4b
jmp 0x51bff1
mov edi, dword [ebp + 0x18]
movzx eax, byte [esp + 0x50]
dec edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push eax
push dword [esp + 0x30]
push ebx
call sym.addr2line::function::name_attr::h36cd3aab840d5cc7
add esp, 0x1c
jmp 0x51bff1
mov ecx, edi
mov edx, 5
push 0x57a1c8
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
nop word cs:[eax + eax]
nop