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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x50]
add edi, ebx
mov dword [esp + 0x10], ebx
cmp byte [esi + 0x20], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
je 0x508169
pop edi
pop esi
pop ebp
mov eax, 0xfffffdf5
pop ebx
add esp, 0x2c
ret
push dword [esi + 0x5c]
call fcn.0050cbb0
push dword [esi + 0x58]
call fcn.0050cbb0
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x58], ebp
mov dword [ecx], ebp
add esp, 8
cmp ebx, edi
jne 0x508194
test ebp, ebp
je 0x5085ac
mov ecx, dword [esi + 0x78]
xor ebp, ebp
cmp ecx, 0xc
ja case.default.0x50819e
jmp dword [ecx*4 + 0x508744]
mov al, byte [ebx]
and al, 0xe0
cmp al, 0x20
jne 0x5085d9
mov dl, byte [ebx]
mov al, dl
and al, 0xe0
cmp al, 0x20
jne 0x5081da
cmp ecx, 2
je 0x5085d9
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 3
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x50819e
test dl, dl
jns 0x5081f4
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 4
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x50819e
cmp dl, 0x40
je 0x50820c
test dl, dl
je 0x50820c
cmp dl, 0x10
je 0x50820c
mov eax, 4
lea ecx, [eax - 1]
jmp 0x508216
mov eax, 5
mov ecx, 2
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
movzx eax, byte [ebx]
shr al, 6
and al, 1
mov byte [esi + 0x7d], al
movzx eax, byte [ebx]
and al, 0xf0
cmp al, 0x10
sete al
mov byte [esi + 0x7e], al
cmp ecx, 2
jne 0x50823a
inc ebx
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x50819e
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0x40]
push 5
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x68]
push ebx
push dword [esi + 0x70]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x70]
push dword [esi + 0x60]
mov dword [esp + 0x54], ebp
push ecx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00506670
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x5085d9
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmovae eax, dword [esp + 0x18]
cmp ecx, eax
ja 0x5085d9
mov dword [esi + 0x60], ecx
test edi, edi
js 0x5085de
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x508725
push 0
push esi
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x18], ecx
call fcn.005070b0
mov edi, dword [esp + 0x54]
mov dword [esi + 0x78], 1
jmp 0x508185
cmp dword [esi + 0x74], 1
jne 0x5082e1
mov ecx, 7
jmp 0x5082f0
xor ecx, ecx
cmp byte [esi + 0x7d], cl
setne cl
lea ecx, [ecx*2 + 4]
mov eax, dword [esi + 0xc]
push ecx
push edi
add eax, 0x3d
mov dword [esp + 0x48], ebp
push ebx
push dword [esi + 0x70]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x50]
push dword [esi + 0x60]
lea eax, [esi + 0x70]
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00506670
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x5085d9
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
ja 0x5085d9
mov dword [esi + 0x60], eax
test edi, edi
js 0x5085de
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x508725
test eax, eax
je 0x5085d9
cmp dword [esi + 0x74], 1
je 0x5085ec
mov edi, dword [esp + 0x4c]
dec eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x78], 9
jmp case.default.0x50819e
mov al, byte [ebx]
shr al, 7
mov byte [esi + 0x7c], al
mov dword [esi + 0x78], 6
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
push 7
push edi
push ebx
push dword [esi + 0x70]
lea eax, [esi + 0x70]
mov dword [esp + 0x50], ebp
push dword [esi + 0x60]
lea ecx, [esp + 0x54]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00506670
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x5085d9
mov eax, dword [esp + 0x24]
cmp eax, 0x10000
ja 0x5085d9
mov dword [esi + 0x60], eax
test edi, edi
js 0x5085de
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x508725
cmp byte [esi + 0x7c], 0
lea edi, [esi + 0x50]
je 0x5083fe
lea eax, [esi + 0x24]
push eax
call fcn.0050cdd0
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 7
jmp 0x508403
mov ecx, 8
push dword [esp + 0x50]
inc eax
mov dword [esi + 0x78], ecx
push eax
push edi
call fcn.0050cc10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5085de
mov eax, dword [esi + 0x50]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x28]
push eax
call fcn.00508f80
mov edi, dword [esp + 0x58]
add esp, 0xc
jmp case.default.0x50819e
mov ecx, dword [esi + 0x60]
mov edx, edi
sub edx, ebx
cmp edx, ecx
sbb eax, eax
inc eax
cmp edx, ecx
push eax
lea eax, [ecx + ebx]
cmovb eax, edi
sub eax, ebx
push eax
push ebx
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.0050ccf0
mov edi, eax
add esp, 0x14
test edi, edi
js 0x5085de
lea eax, [esi + 0x24]
push eax
call fcn.0050cde0
add esp, 4
test eax, eax
jne 0x5085d9
sub dword [esi + 0x60], edi
add ebx, edi
cmp dword [esi + 0x60], ebp
jne 0x508725
mov eax, dword [esi + 0x34]
mov edi, dword [esp + 0x4c]
mov byte [eax], 0
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x50]
sub ecx, dword [esi + 0x30]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x78], 9
jmp case.default.0x50819e
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x34]
call fcn.00505f40
mov dword [esi + 0x34], eax
add esp, 0xc
mov eax, dword [esi + 0x60]
sub eax, edi
mov dword [esi + 0x60], eax
test edi, edi
js 0x5085de
add ebx, edi
test eax, eax
jmp 0x50848c
mov al, byte [ebx]
shr al, 7
mov byte [esi + 0x7c], al
mov dword [esi + 0x78], 0xa
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
push 7
push edi
push ebx
push dword [esi + 0x70]
lea eax, [esi + 0x70]
mov dword [esp + 0x50], ebp
push dword [esi + 0x60]
lea ecx, [esp + 0x54]
push ecx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00506670
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x5085d9
mov eax, dword [esp + 0x28]
cmp eax, 0x10000
ja 0x5085d9
mov dword [esi + 0x60], eax
test edi, edi
js 0x5085de
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x508725
cmp byte [esi + 0x7c], 0
lea ebp, [esi + 0x54]
je 0x50856e
lea eax, [esi + 0x24]
push eax
call fcn.0050cdd0
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 0xb
jmp 0x508573
mov ecx, 0xc
push dword [esp + 0x50]
inc eax
mov dword [esi + 0x78], ecx
push eax
push ebp
call fcn.0050cc10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5085de
mov eax, dword [ebp]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x3c]
push eax
call fcn.00508f80
lea ebp, [edi + 1]
add esp, 0xc
mov edi, dword [esp + 0x4c]
jmp case.default.0x50819e
cmp dword [esp + 0x54], 0
je 0x508690
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x5085c4
cmp eax, 1
jne 0x5085d9
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
or dword [eax], 1
sub ebx, dword [esp + 4]
mov eax, ebx
pop ebx
add esp, 0x2c
ret
mov edi, 0xfffffdf5
mov eax, edi
mov byte [esi + 0x20], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea edi, [eax - 1]
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0xc]
add eax, 0x3d
cmp edi, eax
jb 0x508613
push 0x516
push str.C:_vcpkg_buildtrees_nghttp2_src_v1.50.0_c4d7117a3a.cleanlib_nghttp2_hd.c
push str.INDEX_RANGE_VALID_context__idx_
call fcn.00527eb8
add esp, 0xc
cmp edi, 0x3d
jb 0x508649
add edi, 0xffffffc3
cmp edi, dword [esi + 0xc]
jb 0x508637
push 0x262
push str.C:_vcpkg_buildtrees_nghttp2_src_v1.50.0_c4d7117a3a.cleanlib_nghttp2_hd.c
push str.idx___ringbuf__len
call fcn.00527eb8
add esp, 0xc
mov ecx, dword [esi + 8]
mov eax, dword [esi]
add ecx, edi
and ecx, dword [esi + 4]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax]
jmp 0x50867b
mov ecx, edi
mov byte [esp + 0x38], 0
shl ecx, 4
add ecx, edi
lea eax, [ecx*4 + 0x55a908]
mov dword [esp + 0x2c], eax
lea eax, [ecx*4 + 0x55a91c]
mov dword [esp + 0x30], eax
mov eax, dword [ecx*4 + 0x55a944]
mov dword [esp + 0x34], eax
movups xmm0, xmmword [esp + 0x2c]
mov eax, dword [esp + 0x44]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x48]
mov dword [esi + 0x78], 2
or dword [eax], 2
sub ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret
push edi
push ebx
lea eax, [esi + 0x3c]
push eax
push esi
call fcn.005072b0
mov edi, eax
add esp, 0x10
test edi, edi
js 0x5085de
add ebx, edi
cmp dword [esi + 0x60], ebp
jne 0x508725
mov eax, dword [esi + 0x48]
push dword [esp + 0x44]
push esi
mov byte [eax], 0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x54]
sub ecx, dword [esi + 0x44]
mov dword [eax + 0xc], ecx
cmp dword [esi + 0x74], 2
jne 0x5086e2
call fcn.00507230
jmp 0x5086e7
call fcn.005071a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x5085de
jmp 0x508682
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x48]
call fcn.00505f40
mov dword [esi + 0x48], eax
add esp, 0xc
mov eax, dword [esi + 0x60]
sub eax, edi
mov dword [esi + 0x60], eax
test edi, edi
js 0x5085de
add ebx, edi
test eax, eax
je 0x5086be
cmp dword [esp + 0x54], ebp
je 0x508690
mov edi, 0xfffffdf5
mov byte [esi + 0x20], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret