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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x7037b0
lea eax, [esi + 0x70]
mov edi, dword fs:[0]
mov dword [esi + 0x70], edi
mov dword fs:[0], eax
movq xmm0, qword [edx + 0x10]
mov ebx, dword [edx + 0x18]
movd eax, xmm0
cmp eax, 0x3b9aca00
movzx eax, byte [edx + 0x1c]
mov byte [esi + 0xf], al
mov eax, dword [edx + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [edx + 0x28]
mov dword [edx + 0x10], 0x3b9aca00
je 0x4a4658
movsd xmm1, qword [edx]
movsd xmm2, qword [edx + 8]
mov edi, dword [ebp + 8]
movsd qword [esi + 0x50], xmm2
movsd qword [esi + 0x48], xmm1
movq qword [esi + 0x58], xmm0
mov word [esi + 0x60], pe_nt_image_headers32
lock inc dword [edi]
jle 0x4a4671
mov edx, dword [esi + 0x14]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x48]
mov dword [esi + 4], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], edi
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x4a413b
lea ecx, [ebx + 8]
mov dword [esi + 0x78], 6
call fcn.00674c30
mov ebx, dword [esi + 0x2c]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov edi, dword [esi + 0x20]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4 + 8], edi
movq xmm0, qword [esi + 0x18]
movq qword [eax + ecx*4], xmm0
lea ecx, [ebx + 0x20]
mov dword [ebx + 0x10], edx
mov byte [esi + 3], 1
mov dword [esi + 0x78], 0
call fcn.004a3630
cmp byte [esi + 0xf], 0
je 0x4a42b3
mov byte [esi + 3], 0
push dword [esi + 0x2c]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
cmp eax, 0x3b9aca00
mov dword [esi + 0x10], eax
jne 0x4a41a9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a427a
mov byte [esi + 3], 0
call fcn.006a3f10
jmp 0x4a4190
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x34], eax
mov dword [esi + 0x44], ecx
nop word cs:[eax + eax]
nop
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a427a
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4a461d
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov byte [esi + 3], 0
call fcn.006b86a0
mov dword [esi + 8], ecx
mov edi, edx
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x44]
mov ecx, edi
cmp eax, edx
sbb ecx, ebx
jb 0x4a422f
mov ecx, eax
xor ecx, edx
mov edx, edi
xor edx, ebx
or edx, ecx
mov edx, dword [esi + 0x34]
jne 0x4a43f5
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0x10]
jae 0x4a43f5
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ebx
mov edx, eax
mov byte [esi + 3], 0
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x18]
push dword [esi + 8]
push edi
call fcn.006b8840
add esp, 8
mov edi, ecx
cmp ecx, 0x3b9aca00
mov ecx, 0
mov byte [esi + 3], 0
cmove edi, ecx
cmove eax, ecx
cmove edx, ecx
mov ecx, eax
push edi
call fcn.006a4080
add esp, 4
jmp 0x4a41c0
mov ecx, dword [esi + 4]
cmp eax, 1
je 0x4a4440
cmp eax, 2
jne 0x4a441f
mov byte [esi + 3], 0
push ecx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x919aac]
test eax, 0x7fffffff
je 0x4a42e0
mov byte [esi + 3], 0
call fcn.00721f90
xor al, 1
jmp 0x4a42e2
mov eax, dword [0x919aac]
test eax, 0x7fffffff
je 0x4a4173
mov byte [esi + 3], 0
call fcn.00721f90
test al, al
jne 0x4a4173
mov eax, dword [esi + 0x2c]
mov byte [eax + 4], 1
jmp 0x4a4173
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
movzx eax, byte [ecx + 4]
test al, al
jne 0x4a46e5
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 8]
mov edi, dword [esi + 0x14]
mov ecx, 0xffffffff
mov dword [esi + 0x10], eax
lea eax, [eax*4]
lea edx, [eax + eax*2]
lea eax, [ebx - 0xc]
nop word cs:[eax + eax]
nop dword [eax]
test edx, edx
je 0x4a45fa
inc ecx
add edx, 0xfffffff4
add eax, 0xc
cmp dword [ebx + 4], edi
lea ebx, [ebx + 0xc]
jne 0x4a4320
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x4a4717
mov ebx, dword [eax]
lea ecx, [eax + 0xc]
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 4]
dec edi
test ebx, ebx
mov dword [eax + 0x10], edi
je 0x4a45fa
lock dec dword [ebx]
jne 0x4a436d
mov ecx, ebx
call fcn.004f2fc0
cmp byte [esi + 8], 0
mov ecx, dword [esi + 4]
je 0x4a43cc
mov byte [esi + 3], 0
mov dword [esi + 0x78], 0
push ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
movq xmm0, qword [esi + 0x58]
mov dword [esi + 0x58], 0x3b9aca00
movd eax, xmm0
cmp eax, 0x3b9aca00
je 0x4a472f
movsd xmm1, qword [esi + 0x48]
mov eax, dword [esi + 0x30]
movsd xmm2, qword [esi + 0x50]
movsd qword [eax + 0x10], xmm2
movsd qword [eax + 8], xmm1
mov dword [eax + 4], 0
mov dword [eax], 1
jmp 0x4a4547
mov eax, dword [0x919aac]
mov dword [esi + 0x78], 0
test eax, 0x7fffffff
je 0x4a4376
mov byte [esi + 3], 0
call fcn.00721f90
mov ecx, dword [esi + 4]
test al, al
jne 0x4a4376
mov byte [ecx + 4], 1
jmp 0x4a4376
mov edx, dword [ebp + 8]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx + 0xc], ecx
mov ecx, dword [esi + 4]
je 0x4a4440
cmp eax, 1
je 0x4a4440
cmp eax, 2
je 0x4a428f
test eax, eax
je 0x4a474c
movzx eax, byte [esi + 0x60]
test al, al
je 0x4a458d
mov eax, dword [esi + 0x30]
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x4a454c
mov byte [esi + 3], 0
push ecx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x919aac]
test eax, 0x7fffffff
je 0x4a4464
mov byte [esi + 3], 0
call fcn.00721f90
xor al, 1
jmp 0x4a4466
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
movzx eax, byte [ecx + 4]
test al, al
jne 0x4a4675
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 8]
mov edi, dword [esi + 0x14]
mov ecx, 0xffffffff
mov dword [esi + 0x10], eax
lea eax, [eax*4]
lea edx, [eax + eax*2]
lea eax, [ebx - 0xc]
nop word cs:[eax + eax]
test edx, edx
je 0x4a45d7
inc ecx
add edx, 0xfffffff4
add eax, 0xc
cmp dword [ebx + 4], edi
lea ebx, [ebx + 0xc]
jne 0x4a44a0
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x4a46aa
mov ebx, dword [eax]
lea ecx, [eax + 0xc]
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 4]
dec edi
test ebx, ebx
mov dword [eax + 0x10], edi
je 0x4a45d7
lock dec dword [ebx]
jne 0x4a44ed
mov ecx, ebx
call fcn.004f2fc0
cmp byte [esi + 8], 0
mov ecx, dword [esi + 4]
je 0x4a455d
mov byte [esi + 3], 0
mov dword [esi + 0x78], 0
push ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
movq xmm0, qword [esi + 0x58]
mov dword [esi + 0x58], 0x3b9aca00
movd eax, xmm0
cmp eax, 0x3b9aca00
je 0x4a46c5
mov eax, dword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movsd xmm2, qword [esi + 0x50]
movsd qword [eax + 0x10], xmm2
movsd qword [eax + 8], xmm1
mov dword [eax + 4], 0
mov dword [eax], 0
movq qword [eax + 0x18], xmm0
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x919aac]
mov dword [esi + 0x78], 0
test eax, 0x7fffffff
je 0x4a44f6
mov byte [esi + 3], 0
call fcn.00721f90
mov ecx, dword [esi + 4]
test al, al
jne 0x4a44f6
mov byte [ecx + 4], 1
jmp 0x4a44f6
mov edi, 1
xor ecx, ecx
xor ebx, ebx
jmp 0x4a45be
mov dword [esi + 0x14], ecx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, dword [esi + 0x14]
movzx eax, byte [esi + 0x60]
add ecx, edi
inc ebx
add edi, 2
test al, al
jne 0x4a442b
cmp ebx, 7
jae 0x4a45a0
test ebx, ebx
je 0x4a45ac
mov eax, ecx
nop dword [eax]
pause
dec eax
jne 0x4a45d0
jmp 0x4a45ac
mov dword [esi + 0x78], 4
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x743c78
call fcn.0070a0f0
add esp, 4
jmp 0x4a4767
mov dword [esi + 0x78], 2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x743ca8
call fcn.0070a0f0
add esp, 4
jmp 0x4a4767
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x78], 1
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fc8
push 0x8c7c18
lea eax, [esi + 0x18]
push eax
call fcn.0070a360
add esp, 0xc
jmp 0x4a4767
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x743d90
call fcn.0070a0f0
add esp, 4
ud2
ud2
mov eax, dword [esi + 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x78], 5
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov byte [esi + 0x1c], al
lea eax, [esi + 0x18]
push 0x743c68
push 0x73977c
push eax
call fcn.0070a360
add esp, 0xc
jmp 0x4a4767
mov dword [esi + 0x78], 4
mov edx, edi
push 0x743d2c
call fcn.00709e90
add esp, 4
jmp 0x4a4767
mov byte [esi + 3], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x743c88
call fcn.0070a0f0
add esp, 4
jmp 0x4a4767
mov eax, dword [esi + 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x78], 3
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov byte [esi + 0x1c], al
lea eax, [esi + 0x18]
push 0x743c98
push 0x73977c
push eax
call fcn.0070a360
add esp, 0xc
jmp 0x4a4767
mov dword [esi + 0x78], 2
mov edx, edi
push 0x743d2c
call fcn.00709e90
add esp, 4
jmp 0x4a4767
mov byte [esi + 3], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x743cb8
call fcn.0070a0f0
add esp, 4
jmp 0x4a4767
mov byte [esi + 3], 0
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowswindow_state.rs
mov edx, 0x28
push 0x743c58
call fcn.0070a0f0
add esp, 4
ud2