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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
cmp byte [edi + 0x25], 0
jne 0x10022180
mov edx, dword [edi + 0x70]
lea ecx, [edi + 0x70]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
cmp edx, ecx
je 0x100220e8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov eax, dword [edx]
lea esi, [edx - 0x10]
mov dword [ecx], eax
mov dword [eax + 4], ecx
test byte [esi + 0xc1], 0x20
jne 0x100220af
test byte [0x10059abc], 1
je 0x100220a5
push str.Abandoning_on_shutdown
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push 0x80
push eax
call fcn.100015f0
lea eax, [esp + 0x48]
mov edx, 0x1004c9b0
push eax
push esi
call fcn.10001280
add esp, 0x18
mov ecx, esi
call fcn.10010430
lea ecx, [edi + 0x70]
or eax, 0xffffffff
lock xadd dword [esi + 0xb8], eax
jne 0x100220c6
mov ecx, esi
call fcn.1000ea80
lea ecx, [edi + 0x70]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
add esi, 0xffffffff
mov edx, dword [ecx]
adc eax, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
cmp edx, ecx
jne 0x10022060
jmp 0x100220ec
mov esi, dword [esp + 0x10]
push eax
push esi
mov ecx, 0x14
call fcn.10004ab0
mov ecx, dword [edi + 0x78]
lea esi, [edi + 0x78]
xorps xmm0, xmm0
add esp, 8
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
cmp ecx, esi
je 0x1002214e
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
nop
mov eax, dword [ecx]
mov edx, ecx
mov dword [esi], eax
mov ecx, edi
mov dword [eax + 4], esi
call fcn.10021000
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
add edx, 0xffffffff
mov ecx, dword [esi]
adc eax, 0xffffffff
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
cmp ecx, esi
jne 0x10022120
jmp 0x10022152
mov edx, dword [esp + 0x10]
push eax
push edx
mov ecx, 0x18
call fcn.10004ab0
add esp, 8
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x26], 0
jne 0x100221a0
mov byte [edi + 0x26], 1
test byte [0x10059ab9], 1
je 0x100221a0
push dword [esi]
push 1
push edi
call fcn.100214f0
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [0x10059938]
mov edx, dword [esi + 4]
mov esi, dword [0x1005993c]
mov dword [esp + 0x1c], eax
sub eax, ecx
mov dword [esp + 0x20], edx
sbb edx, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jne 0x100221da
cmp eax, 0xf4240
jb 0x100222f9
mov edi, dword [esp + 0x1c]
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov edx, esi
mov dword [esp + 0x18], 0x10059938
mov esi, dword [esp + 0x18]
push ebx
mov ebx, edi
lock cmpxchg8b qword [esi]
mov edi, ebx
pop ebx
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], eax
jne 0x100222f9
cmp esi, edx
jne 0x100222f9
mov edx, 0xf8
lea ecx, [esp + 0x38]
call fcn.100018e0
test byte [0x10059ab8], 1
je 0x1002223b
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.10001210
add esp, 8
mov ecx, dword [esp + 0x40]
mov edi, 0xf4240
sub ecx, dword [0x10059948]
mov eax, dword [esp + 0x44]
sbb eax, dword [0x1005994c]
push dword [esp + 0x24]
mul edi
push dword [esp + 0x14]
mov esi, eax
mov eax, ecx
mul edi
add esi, edx
push esi
push eax
call fcn.1004a2e0
test edx, edx
jne 0x10022275
cmp eax, edi
jb 0x10022295
mov al, byte [0x10059ab8]
test al, 4
je 0x1002229a
push str.__1000__1000___PerfCounterSamples_QUIC_PERF_COUNTER_CONN_HANDSHAKE_FAIL____MsQuicLib.PerfCounterSamples_QUIC_PERF_COUNTER_CONN_HANDSHAKE_FAIL______TimeDiffUs____1000000
push str.C:__w1_s_srccorelibrary.c
push 0xb7
call fcn.1003e120
add esp, 0xc
mov al, byte [0x10059ab8]
cmp dword [esp + 0xdc], 0
jg 0x100222ca
jl 0x100222b3
cmp dword [esp + 0xd8], 0x186a0
jae 0x100222ca
cmp dword [0x100599e4], 0
jl 0x100222e5
jg 0x100222ca
cmp dword [0x100599e0], 0x186a0
jb 0x100222e5
test al, 4
je 0x100222e5
push str.PerfCounterSamples_QUIC_PERF_COUNTER_CONN_QUEUE_DEPTH____100000__MsQuicLib.PerfCounterSamples_QUIC_PERF_COUNTER_CONN_QUEUE_DEPTH____100000
push str.C:__w1_s_srccorelibrary.c
push 0xb8
call fcn.1003e120
add esp, 0xc
mov ecx, 0x3e
lea esi, [esp + 0x38]
mov edi, 0x10059940
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x30]
mov eax, edx
mov esi, dword [edi + 0x34]
and eax, esi
cmp eax, 0xffffffff
je 0x10022434
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp esi, eax
ja 0x10022434
jb 0x1002232f
cmp edx, ecx
ja 0x10022434
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [edi + 0x44], edx
jbe 0x10022429
mov eax, dword [edi + 0x48]
lea eax, [eax + edx*8]
mov edx, dword [eax]
mov dword [esp + 0x10], eax
cmp edx, eax
je 0x100223b9
nop word [eax + eax]
mov eax, dword [esp + 0x20]
mov esi, edx
cmp dword [edx + 0x36c], eax
ja 0x100223b9
jb 0x10022388
cmp dword [edx + 0x368], ecx
ja 0x100223b9
mov ecx, dword [edx]
mov edx, ecx
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov dword [eax], esi
add dword [edi + 0x38], 0xffffffff
mov dword [esp + 0x34], esi
adc dword [edi + 0x3c], 0xffffffff
cmp edx, dword [esp + 0x10]
jne 0x10022370
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [edi + 0x44]
jb 0x10022355
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x30]
cmp ecx, eax
je 0x10022429
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push dword [esp + 0x20]
mov dword [esp + 0x34], eax
lea esi, [ecx - 0x18]
push edi
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx], 0
mov ecx, esi
mov dword [esi + 0xc8], eax
call fcn.10010210
mov dword [esi + 0xc8], 0
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x38]
add esp, 8
cmp ecx, eax
jne 0x100223e0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [ecx + 0x14], 0
cmp byte [edi + 0x25], 0
je 0x10022542
mov eax, dword [edi + 0x70]
lea esi, [edi + 0x70]
cmp eax, esi
je 0x100224b8
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi]
cmp ecx, esi
je 0x10022485
mov eax, dword [ecx]
mov dword [esi], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [eax + 4], esi
lea esi, [ecx - 0x10]
mov al, byte [esi + 0xd8]
mov ecx, 0x14
and al, 0xfd
or al, 1
mov byte [esi + 0xd8], al
call fcn.10004ab0
add esp, 8
jmp 0x10022487
xor esi, esi
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x100224b8
mov eax, dword [esp + 8]
mov edx, esi
push eax
mov ecx, edi
push dword [eax + 0x18]
call fcn.10021cd0
mov eax, dword [esp + 0x10]
add esp, 8
mov byte [edi + 0x18], 1
mov dword [eax + 0x14], 0
cmp byte [edi + 0x25], 0
je 0x10022542
cmp dword [edi + 0x80], 0
je 0x10022542
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x78]
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov ecx, 0x18
dec dword [edi + 0x80]
call fcn.10004ab0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10022542
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
call fcn.10005d00
mov edx, esi
mov ecx, edi
call fcn.10021000
push 0
push 1
mov ecx, 0x1a
call fcn.10004ab0
mov esi, dword [esp + 0x10]
add esp, 8
mov byte [edi + 0x18], 1
mov dword [esi + 0x14], 0
jmp 0x10022546
mov esi, dword [esp + 8]
cmp byte [edi + 0x18], 0
jne 0x100225d1
mov edx, dword [0x100585ac]
test edx, edx
je 0x1002258c
mov ecx, dword [esi]
sub ecx, dword [esi + 8]
mov eax, dword [esi + 4]
sbb eax, dword [esi + 0xc]
xor esi, esi
cmp esi, eax
jb 0x1002258c
ja 0x10022572
cmp dword [edx + 4], ecx
jbe 0x1002258c
mov byte [edi + 0x18], 1
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov byte [edi + 0x26], 0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
test byte [0x10059ab9], 1
je 0x100225b1
push ecx
push 0
push edi
call fcn.100214f0
add esp, 0xc
mov dword [edi + 0x2c], 0
test byte [0x10059ab9], 1
je 0x100225d1
push 0
push edi
mov edx, 0x1004c850
call fcn.10004850
add esp, 8
mov ecx, dword [esp + 0x134]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret