Function at 0x49fd80
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 0x49fde8
test cl, 0x10
jne 0x49fdf2
mov eax, edx
sub eax, ebp
je 0x49fe0b
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 0x49fe40
mov dword [edi], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 0
test eax, eax
je 0x49fe23
sub edx, ebp
push edx
push ebp
push esi
call fcn.004a4ec0
add esp, 0x24
jmp 0x49fded
mov dword [esp + 8], 0
cmp dword [esp + 0x40], 0
jne 0x4a03b6
jmp 0x4a048b
xor eax, eax
jmp case.0x49ff52.2
mov dword [esi + 0x1a0], 2
xor ebx, ebx
cmp ebp, edx
setne al
or al, bl
je 0x4a03a9
mov eax, dword [esi + 0x1a0]
cmp eax, 5
ja case.default.0x49fe4b
jmp dword [eax*4 + 0x96ea04]
mov eax, edx
sub eax, ebp
test eax, eax
jle 0x4a04c9
push dword [esp + 0x40]
push eax
push ebp
push dword [esp + 0x10]
call fcn.004a3950
add esp, 0x10
test eax, eax
js 0x4a046b
add ebp, eax
add dword [esp + 8], eax
cmp dword [esi + 0x168], 0
jne 0x4a03ab
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.004a3920
add esp, 4
mov dword [esi + 0x1a0], 1
mov edx, dword [esp]
cmp ebp, edx
je 0x4a03a9
mov eax, edx
sub eax, ebp
test eax, eax
jle 0x4a04b4
push dword [esp + 0x40]
push eax
push ebp
push dword [esp + 0x10]
call fcn.004a3950
add esp, 0x10
test eax, eax
js 0x4a0444
add ebp, eax
add dword [esp + 8], eax
cmp dword [esi + 0x168], 0
jne 0x4a03ab
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.004a3920
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.0x49ff52
jmp dword [ecx*4 + 0x96ea8c]
push 0
push esi
call fcn.004a5030
add esp, 8
test eax, eax
jne case.0x49ff52.2
mov eax, dword [esi + 0x198]
or eax, dword [esi + 0x19c]
mov edx, dword [esp]
jne 0x49fe27
push 1
push esi
call fcn.004a5030
add esp, 8
test eax, eax
je 0x4a0393
jmp 0x4a0508
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 0x49ffba
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 0x4a0433
push dword [esp + 4]
call fcn.004a3930
add esp, 4
xor ebx, ebx
mov edi, dword [esp + 0x30]
mov edx, dword [esp]
jmp 0x49fe33
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 0x4a0016
mov ebx, eax
push ebx
push esi
call fcn.004a6f20
add esp, 8
test eax, eax
mov ecx, dword [esp + 0x2c]
jne case.0x49ff52.2
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x4a0055
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 0x4a044e
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 0x4a0433
push 1
push esi
call fcn.004a5030
add esp, 8
test eax, eax
mov edi, dword [esp + 0x30]
je 0x4a0393
jmp 0x4a04de
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 0x4a00bf
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.004a1940
add esp, 0x14
test eax, eax
js 0x4a01d0
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 0x4a0475
xor ecx, eax
or ecx, edx
mov edi, dword [esp + 0x30]
jne 0x4a03ab
mov eax, dword [esi + 0x1c0]
lea ecx, [eax - 3]
cmp ecx, 0xd
ja case.0x4a0135.4
jmp dword [ecx*4 + 0x96ea1c]
push dword [esp + 0xc]
call fcn.004a6dc0
add esp, 4
cmp eax, 0xffffff97
je 0x4a027f
test eax, eax
jne case.0x49ff52.2
mov eax, dword [esi + 0x1c0]
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x4a016b.4
jmp dword [eax*4 + 0x96ea54]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x64]
test eax, eax
jne 0x4a034c
jmp 0x4a0380
push 2
push esi
call fcn.004a5030
add esp, 8
test eax, eax
jne case.0x49ff52.2
mov eax, dword [esi + 0x198]
or eax, dword [esi + 0x19c]
je 0x4a0207
mov eax, dword [esi + 0x1c0]
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x4a01b9.4
jmp dword [eax*4 + 0x96eac4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x50]
test eax, eax
jne 0x4a023b
jmp 0x4a025b
cmp eax, 0xffffff97
je 0x4a0283
jmp case.0x49ff52.2
add ecx, 0xfff0f900
adc edx, 0xffffffff
cmp ecx, 2
sbb edx, 0
jb case.0x49ff52.2
mov dword [esi + 0x1a0], 4
mov bl, 1
mov edx, dword [esp]
jmp 0x49fe33
push esi
call fcn.004a5290
add esp, 4
test eax, eax
jne case.0x49ff52.2
push 3
push esi
call fcn.004a5030
add esp, 8
test eax, eax
je 0x4a0393
jmp 0x4a051d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x4a025b
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 0x4a044e
mov dword [esi + 0x1a0], 3
jmp 0x4a039f
push dword [esp + 0xc]
call fcn.004a6e50
add esp, 4
cmp eax, 0xffffff97
jne 0x4a0151
mov edi, dword [esp + 0x2c]
or byte [esi + 0x1e9], 0x10
mov dword [esi + 0x1a0], 5
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4a02c2
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 0x4a044e
mov eax, dword [edi + 0x70]
mov bl, 1
test eax, eax
mov ecx, edi
mov edi, dword [esp + 0x30]
je 0x4a0300
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 0x49fe33
jmp 0x4a044e
mov edx, dword [esp]
jmp 0x49fe33
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x424], 0
je case.0x4a016b.12
test byte [esi + 0x1e5], 0x80
je case.0x4a016b.12
test byte [esi + 0x1e9], 0xc
jne case.0x4a016b.12
mov ecx, dword [esp + 0x2c]
mov edx, esi
push dword [esp + 0x10]
call fcn.004a1c00
add esp, 4
test eax, eax
jne case.0x49ff52.2
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x4a0380
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 0x4a044e
push 3
push esi
call fcn.004a5030
add esp, 8
test eax, eax
jne 0x4a04f3
push dword [esp + 4]
call fcn.004a3930
add esp, 4
xor ebx, ebx
mov edx, dword [esp]
jmp 0x49fe33
mov ebp, edx
cmp dword [esp + 0x40], 0
je 0x4a048b
mov ecx, dword [esi + 0x1a0]
cmp ecx, 5
je 0x4a048b
mov eax, 0xfffffda6
test ecx, ecx
jne case.0x49ff52.2
mov eax, 0xfffffda2
cmp dword [esi + 0x168], 0
jne case.0x49ff52.2
push 4
push esi
call fcn.004a5030
add esp, 8
test eax, eax
jne case.0x49ff52.2
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x4a048b
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.0x49ff52.2
jmp 0x4a048b
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x40], 0
jne 0x4a03b6
jmp 0x4a048b
mov eax, 0xfffffda6
jmp case.0x49ff52.2
mov eax, 0xfffffc7a
jmp case.0x49ff52.2
sub edx, ebp
add edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, edx
jmp case.0x49ff52.2
mov eax, 0xfffffda2
jmp case.0x49ff52.2
cmp ebp, dword [esp]
mov edi, dword [esp + 0x30]
je 0x4a048b
push esi
call fcn.004a4fe0
add esp, 4
test eax, eax
je 0x4a049a
sub ebp, dword [esp + 0x38]
mov dword [edi], ebp
mov eax, dword [esp + 8]
jmp case.0x49ff52.2
mov eax, dword [esp]
sub eax, ebp
push eax
push ebp
push esi
call fcn.004a4ec0
add esp, 0xc
test eax, eax
jne case.0x49ff52.2
jmp 0x4a048b
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 0x96ec7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x5b1
push str.nghttp3_conn.c
push 0x96ec7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x508
push str.nghttp3_conn.c
push 0x96ec7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x51d
push str.nghttp3_conn.c
push 0x96ec7d
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.004a7310
push str.nghttp3_conn_read_bidi
push 0x5a8
push str.nghttp3_conn.c
call fcn.004a7310
push str.nghttp3_conn_read_bidi
push 0x52d
push str.nghttp3_conn.c
call fcn.004a7310
nop