Function at 0x515260
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 0x515299
pop edi
pop esi
pop ebp
mov eax, 0xfffffdf5
pop ebx
add esp, 0x2c
ret
push dword [esi + 0x5c]
call fcn.0051c270
push dword [esi + 0x58]
call fcn.0051c270
mov eax, dword [esp + 0x50]
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x58], ebp
mov dword [eax], ebp
add esp, 8
cmp ebx, edi
jne 0x5152c4
test ebp, ebp
je 0x5156e6
mov ecx, dword [esi + 0x78]
xor ebp, ebp
cmp ecx, 0xc
ja case.default.0x5152ce
jmp dword [ecx*4 + 0x51587c]
mov al, byte [ebx]
and al, 0xe0
cmp al, 0x20
jne 0x515713
mov dl, byte [ebx]
mov al, dl
and al, 0xe0
cmp al, 0x20
jne 0x51530a
cmp ecx, 2
je 0x515713
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 3
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x5152ce
test dl, dl
jns 0x515324
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 4
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x5152ce
cmp dl, 0x40
je 0x51533c
test dl, dl
je 0x51533c
cmp dl, 0x10
je 0x51533c
mov eax, 4
lea ecx, [eax - 1]
jmp 0x515346
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 0x51536a
inc ebx
mov dword [esi + 0x60], ebp
mov dword [esi + 0x70], ebp
jmp case.default.0x5152ce
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.00512c00
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x515713
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmovae eax, dword [esp + 0x18]
cmp ecx, eax
ja 0x515713
mov dword [esi + 0x60], ecx
test edi, edi
js 0x515718
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x51585f
push 0
push esi
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x18], ecx
call fcn.005136f0
mov edi, dword [esp + 0x54]
mov dword [esi + 0x78], 1
jmp 0x5152b5
cmp dword [esi + 0x74], 1
jne 0x515411
mov ecx, 7
jmp 0x515420
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.00512c00
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x515713
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
ja 0x515713
mov dword [esi + 0x60], eax
test edi, edi
js 0x515718
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x51585f
test eax, eax
je 0x515713
cmp dword [esi + 0x74], 1
je 0x515726
mov edi, dword [esp + 0x4c]
dec eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x78], 9
jmp case.default.0x5152ce
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.00512c00
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x515713
mov eax, dword [esp + 0x24]
cmp eax, 0x10000
ja 0x515713
mov dword [esi + 0x60], eax
test edi, edi
js 0x515718
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x51585f
cmp byte [esi + 0x7c], 0
lea edi, [esi + 0x50]
je 0x51552e
lea eax, [esi + 0x24]
push eax
call fcn.0051c500
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 7
jmp 0x515533
mov ecx, 8
push dword [esp + 0x50]
inc eax
mov dword [esi + 0x78], ecx
push eax
push edi
call fcn.0051c310
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x515718
mov eax, dword [esi + 0x50]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x28]
push eax
call fcn.00516850
mov edi, dword [esp + 0x58]
add esp, 0xc
jmp case.default.0x5152ce
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.0051c420
mov edi, eax
add esp, 0x14
test edi, edi
js 0x515718
lea eax, [esi + 0x24]
push eax
call fcn.0051c510
add esp, 4
test eax, eax
jne 0x515713
sub dword [esi + 0x60], edi
add ebx, edi
cmp dword [esi + 0x60], ebp
jne 0x51585f
mov eax, dword [esi + 0x34]
mov byte [eax], 0
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x50]
sub ecx, dword [esi + 0x30]
mov edi, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x78], 9
jmp case.default.0x5152ce
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x34]
call fcn.00507c90
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0x60]
sub eax, edi
mov dword [esi + 0x60], eax
test edi, edi
js 0x515718
add ebx, edi
test eax, eax
jne 0x51585f
mov byte [ecx], al
jmp 0x5155c8
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.00512c00
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x515713
mov eax, dword [esp + 0x28]
cmp eax, 0x10000
ja 0x515713
mov dword [esi + 0x60], eax
test edi, edi
js 0x515718
add ebx, edi
cmp dword [esp + 0x40], ebp
je 0x51585f
cmp byte [esi + 0x7c], 0
lea ebp, [esi + 0x54]
je 0x5156a8
lea eax, [esi + 0x24]
push eax
call fcn.0051c500
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 0xb
jmp 0x5156ad
mov ecx, 0xc
push dword [esp + 0x50]
inc eax
mov dword [esi + 0x78], ecx
push eax
push ebp
call fcn.0051c310
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x515718
mov eax, dword [ebp]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x3c]
push eax
call fcn.00516850
lea ebp, [edi + 1]
add esp, 0xc
mov edi, dword [esp + 0x4c]
jmp case.default.0x5152ce
cmp dword [esp + 0x54], 0
je 0x5157ca
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x5156fe
cmp eax, 1
jne 0x515713
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
or dword [ecx], 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 0x51574d
push 0x516
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_nghttp2_hd.c
push str.INDEX_RANGE_VALID_context__idx_
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
add esp, 0xc
cmp edi, 0x3d
jb 0x515783
add edi, 0xffffffc3
cmp edi, dword [esi + 0xc]
jb 0x515771
push 0x262
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_nghttp2_hd.c
push str.idx___ringbuf__len
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
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 0x5157b5
mov ecx, edi
mov byte [esp + 0x38], 0
shl ecx, 4
add ecx, edi
lea eax, [ecx*4 + 0x58f758]
mov dword [esp + 0x2c], eax
lea eax, [ecx*4 + 0x58f76c]
mov dword [esp + 0x30], eax
mov eax, dword [ecx*4 + 0x58f794]
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.00513a60
mov edi, eax
add esp, 0x10
test edi, edi
js 0x515718
add ebx, edi
cmp dword [esi + 0x60], ebp
jne 0x51585f
mov eax, dword [esi + 0x48]
push dword [esp + 0x44]
mov byte [eax], 0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x54]
sub ecx, dword [esi + 0x44]
push esi
mov dword [eax + 0xc], ecx
cmp dword [esi + 0x74], 2
jne 0x51581c
call fcn.00513970
jmp 0x515821
call fcn.005138e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x515718
jmp 0x5157bc
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x48]
call fcn.00507c90
mov dword [esi + 0x48], eax
add esp, 0xc
mov ecx, dword [esi + 0x60]
sub ecx, edi
mov dword [esi + 0x60], ecx
test edi, edi
js 0x515718
add ebx, edi
test ecx, ecx
je 0x5157fb
cmp dword [esp + 0x54], ebp
je 0x5157ca
mov edi, 0xfffffdf5
mov byte [esi + 0x20], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret