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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
lea edx, [eax + ebp]
test ebp, ebp
cmove edx, ebp
movzx ecx, word [esi + 0x1e8]
test ecx, 0x200
jne 0x4a13f8
test cl, 0x10
jne 0x4a1402
mov eax, edx
sub eax, ebp
je 0x4a141b
mov dword [esp + 0x14], eax
lea eax, [esi + 0x160]
mov dword [esp + 4], eax
lea eax, [esi + 0x1c8]
mov dword [esp + 0xc], eax
lea eax, [esi + 0x1d8]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp], edx
jmp 0x4a1450
mov dword [edi], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 0
test eax, eax
je 0x4a1433
sub edx, ebp
push edx
push ebp
push esi
call fcn.004a64d0
add esp, 0x24
jmp 0x4a13fd
mov dword [esp + 8], 0
cmp dword [esp + 0x40], 0
jne 0x4a19c6
jmp 0x4a1a9b
xor eax, eax
jmp case.0x4a1562.2
mov dword [esi + 0x1a0], 2
xor ebx, ebx
cmp ebp, edx
setne al
or al, bl
je 0x4a19b9
mov eax, dword [esi + 0x1a0]
cmp eax, 5
ja case.default.0x4a145b
jmp dword [eax*4 + 0x9b1064]
mov eax, edx
sub eax, ebp
test eax, eax
jle 0x4a1ad9
push dword [esp + 0x40]
push eax
push ebp
push dword [esp + 0x10]
call fcn.004a4f60
add esp, 0x10
test eax, eax
js 0x4a1a7b
add ebp, eax
add dword [esp + 8], eax
cmp dword [esi + 0x168], 0
jne 0x4a19bb
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov dword [esi + 0x174], ecx
mov dword [esi + 0x170], eax
push dword [esp + 4]
call fcn.004a4f30
add esp, 4
mov dword [esi + 0x1a0], 1
mov edx, dword [esp]
cmp ebp, edx
je 0x4a19b9
mov eax, edx
sub eax, ebp
test eax, eax
jle 0x4a1ac4
push dword [esp + 0x40]
push eax
push ebp
push dword [esp + 0x10]
call fcn.004a4f60
add esp, 0x10
test eax, eax
js 0x4a1a54
add ebp, eax
add dword [esp + 8], eax
cmp dword [esi + 0x168], 0
jne 0x4a19bb
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov dword [esi + 0x17c], ecx
mov dword [esi + 0x178], eax
mov dword [esi + 0x19c], ecx
mov dword [esi + 0x198], eax
push dword [esp + 4]
call fcn.004a4f30
add esp, 4
mov ecx, dword [esi + 0x170]
mov edx, dword [esi + 0x174]
mov eax, 0xfffffda7
mov ebx, 0xd
cmp ebx, ecx
mov ebx, 0
sbb ebx, edx
jb case.default.0x4a1562
jmp dword [ecx*4 + 0x9b10ec]
push 0
push esi
call fcn.004a6640
add esp, 8
test eax, eax
jne case.0x4a1562.2
mov eax, dword [esi + 0x198]
or eax, dword [esi + 0x19c]
mov edx, dword [esp]
jne 0x4a1437
push 1
push esi
call fcn.004a6640
add esp, 8
test eax, eax
je 0x4a19a3
jmp 0x4a1b18
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x19c]
mov ebx, edx
sub ebx, ebp
mov edx, ebx
sar edx, 0x1f
cmp eax, ebx
mov edi, ecx
sbb edi, edx
mov edx, eax
jl 0x4a15ca
mov edx, ebx
add ebp, edx
add dword [esp + 8], edx
mov edi, eax
sub edi, edx
mov ebx, ecx
sbb ebx, 0
xor eax, edx
or eax, ecx
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], ebx
jne 0x4a1a43
push dword [esp + 4]
call fcn.004a4f40
add esp, 4
xor ebx, ebx
mov edi, dword [esp + 0x30]
mov edx, dword [esp]
jmp 0x4a1443
mov ebx, dword [esi + 0x198]
mov ecx, dword [esi + 0x19c]
mov eax, edx
sub eax, ebp
mov edx, eax
sar edx, 0x1f
cmp ebx, eax
sbb ecx, edx
jl 0x4a1626
mov ebx, eax
push ebx
push esi
call fcn.004a8530
add esp, 8
test eax, eax
mov ecx, dword [esp + 0x2c]
jne case.0x4a1562.2
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x4a1665
push dword [esi + 0x124]
push dword [ecx + 0x420]
push ebx
push ebp
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ecx
call eax
add esp, 0x1c
test eax, eax
jne 0x4a1a5e
add ebp, ebx
mov eax, dword [esi + 0x198]
mov edi, dword [esi + 0x19c]
mov edx, eax
sub edx, ebx
mov ecx, edi
sbb ecx, 0
mov dword [esi + 0x198], edx
mov dword [esi + 0x19c], ecx
xor eax, ebx
or eax, edi
jne 0x4a1a43
push 1
push esi
call fcn.004a6640
add esp, 8
test eax, eax
mov edi, dword [esp + 0x30]
je 0x4a19a3
jmp 0x4a1aee
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x19c]
mov ebx, edx
sub ebx, ebp
mov edx, ebx
sar edx, 0x1f
cmp eax, ebx
mov edi, ecx
sbb edi, edx
mov edx, eax
jl 0x4a16cf
mov edx, ebx
xor eax, edx
xor ebx, ebx
or eax, ecx
sete bl
push ebx
push edx
push ebp
push esi
mov edi, dword [esp + 0x3c]
push edi
call fcn.004a2f50
add esp, 0x14
test eax, eax
js 0x4a17e0
add ebp, eax
add dword [esp + 8], eax
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x19c]
mov edi, ecx
sub edi, eax
mov ebx, edx
sbb ebx, 0
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], ebx
test byte [esi + 0x1e8], 0x10
jne 0x4a1a85
xor ecx, eax
or ecx, edx
mov edi, dword [esp + 0x30]
jne 0x4a19bb
mov eax, dword [esi + 0x1c0]
lea ecx, [eax - 3]
cmp ecx, 0xd
ja case.0x4a1745.4
jmp dword [ecx*4 + 0x9b107c]
push dword [esp + 0xc]
call fcn.004a83d0
add esp, 4
cmp eax, 0xffffff97
je 0x4a188f
test eax, eax
jne case.0x4a1562.2
mov eax, dword [esi + 0x1c0]
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x4a177b.4
jmp dword [eax*4 + 0x9b10b4]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x64]
test eax, eax
jne 0x4a195c
jmp 0x4a1990
push 2
push esi
call fcn.004a6640
add esp, 8
test eax, eax
jne case.0x4a1562.2
mov eax, dword [esi + 0x198]
or eax, dword [esi + 0x19c]
je 0x4a1817
mov eax, dword [esi + 0x1c0]
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x4a17c9.4
jmp dword [eax*4 + 0x9b1124]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x50]
test eax, eax
jne 0x4a184b
jmp 0x4a186b
cmp eax, 0xffffff97
je 0x4a1893
jmp case.0x4a1562.2
add ecx, 0xfff0f900
adc edx, 0xffffffff
cmp ecx, 2
sbb edx, 0
jb case.0x4a1562.2
mov dword [esi + 0x1a0], 4
mov bl, 1
mov edx, dword [esp]
jmp 0x4a1443
push esi
call fcn.004a68a0
add esp, 4
test eax, eax
jne case.0x4a1562.2
push 3
push esi
call fcn.004a6640
add esp, 8
test eax, eax
je 0x4a19a3
jmp 0x4a1b2d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x4a186b
push dword [esi + 0x124]
push dword [ecx + 0x420]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ecx
call eax
add esp, 0x14
test eax, eax
jne 0x4a1a5e
mov dword [esi + 0x1a0], 3
jmp 0x4a19af
push dword [esp + 0xc]
call fcn.004a8460
add esp, 4
cmp eax, 0xffffff97
jne 0x4a1761
mov edi, dword [esp + 0x2c]
or byte [esi + 0x1e9], 0x10
mov dword [esi + 0x1a0], 5
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4a18d2
push dword [esi + 0x124]
push dword [edi + 0x420]
push 0
push 0x10e
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
call eax
add esp, 0x1c
test eax, eax
jne 0x4a1a5e
mov eax, dword [edi + 0x70]
mov bl, 1
test eax, eax
mov ecx, edi
mov edi, dword [esp + 0x30]
je 0x4a1910
push dword [esi + 0x124]
push dword [ecx + 0x420]
push 0
push 0x10e
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ecx
call eax
add esp, 0x1c
test eax, eax
mov edx, dword [esp]
je 0x4a1443
jmp 0x4a1a5e
mov edx, dword [esp]
jmp 0x4a1443
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x424], 0
je case.0x4a177b.12
test byte [esi + 0x1e5], 0x80
je case.0x4a177b.12
test byte [esi + 0x1e9], 0xc
jne case.0x4a177b.12
mov ecx, dword [esp + 0x2c]
mov edx, esi
push dword [esp + 0x10]
call fcn.004a3210
add esp, 4
test eax, eax
jne case.0x4a1562.2
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x4a1990
cmp dword [esp + 0x40], 0
setne cl
cmp ebp, dword [esp]
sete dl
and dl, cl
movzx ecx, dl
push dword [esi + 0x124]
push dword [ebx + 0x420]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ebx
call eax
add esp, 0x18
test eax, eax
jne 0x4a1a5e
push 3
push esi
call fcn.004a6640
add esp, 8
test eax, eax
jne 0x4a1b03
push dword [esp + 4]
call fcn.004a4f40
add esp, 4
xor ebx, ebx
mov edx, dword [esp]
jmp 0x4a1443
mov ebp, edx
cmp dword [esp + 0x40], 0
je 0x4a1a9b
mov ecx, dword [esi + 0x1a0]
cmp ecx, 5
je 0x4a1a9b
mov eax, 0xfffffda6
test ecx, ecx
jne case.0x4a1562.2
mov eax, 0xfffffda2
cmp dword [esi + 0x168], 0
jne case.0x4a1562.2
push 4
push esi
call fcn.004a6640
add esp, 8
test eax, eax
jne case.0x4a1562.2
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x4a1a9b
push dword [esi + 0x124]
mov ecx, dword [esp + 0x30]
push dword [ecx + 0x420]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ecx
call eax
add esp, 0x14
mov ecx, eax
mov eax, 0xfffffc7a
test ecx, ecx
jne case.0x4a1562.2
jmp 0x4a1a9b
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x40], 0
jne 0x4a19c6
jmp 0x4a1a9b
mov eax, 0xfffffda6
jmp case.0x4a1562.2
mov eax, 0xfffffc7a
jmp case.0x4a1562.2
sub edx, ebp
add edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, edx
jmp case.0x4a1562.2
mov eax, 0xfffffda2
jmp case.0x4a1562.2
cmp ebp, dword [esp]
mov edi, dword [esp + 0x30]
je 0x4a1a9b
push esi
call fcn.004a65f0
add esp, 4
test eax, eax
je 0x4a1aaa
sub ebp, dword [esp + 0x38]
mov dword [edi], ebp
mov eax, dword [esp + 8]
jmp case.0x4a1562.2
mov eax, dword [esp]
sub eax, ebp
push eax
push ebp
push esi
call fcn.004a64d0
add esp, 0xc
test eax, eax
jne case.0x4a1562.2
jmp 0x4a1a9b
push 0x4ee
push str.nghttp3_conn.c
push str.end___p___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x4da
push str.nghttp3_conn.c
push str.end___p___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x558
push str.nghttp3_conn.c
push 0x9b12dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x5b1
push str.nghttp3_conn.c
push 0x9b12dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x508
push str.nghttp3_conn.c
push 0x9b12dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x51d
push str.nghttp3_conn.c
push 0x9b12dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push str.nghttp3_conn_read_bidi
push 0x587
push str.nghttp3_conn.c
call fcn.004a8920
push str.nghttp3_conn_read_bidi
push 0x5a8
push str.nghttp3_conn.c
call fcn.004a8920
push str.nghttp3_conn_read_bidi
push 0x52d
push str.nghttp3_conn.c
call fcn.004a8920
nop