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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x268
mov esi, esp
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], esp
mov dword [esi + 0x260], 0xffffffff
mov dword [esi + 0x25c], 0x4a2f50
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x258]
mov ecx, dword fs:[0]
mov dword [esi + 0x258], ecx
mov dword fs:[0], eax
mov dword [esi + 0xc0], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xb4], 4
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov byte [esi + 4], 1
mov dword [esi + 0x260], 2
mov eax, dword [edx + 0x10]
movzx ecx, byte [edx + 0x11]
push ecx
push eax
call fcn.004d93a0
add esp, 8
mov byte [esi + 4], 1
lea ecx, [esi + 0xb4]
push edx
push eax
push ecx
call fcn.004da270
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x499a1f
add eax, 4
mov byte [esi + 4], 1
push eax
call fcn.004d9610
add esp, 4
mov byte [esi + 4], 1
push eax
lea eax, [esi + 0xb4]
push eax
call fcn.004da2f0
add esp, 8
mov byte [esi + 4], 1
lea eax, [esi + 0x190]
push 1
lea ecx, [esi + 0xb4]
push ecx
push eax
call fcn.004da380
add esp, 0xc
movzx eax, byte [esi + 0x190]
mov edx, dword [ebp + 8]
cmp al, 4
jne 0x499b4f
mov eax, dword [esi + 0x194]
mov dword [esi + 0x4c], 0
mov word [esi + 0x6c], 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x60], 0
mov byte [esi + 2], 0
mov byte [esi + 3], 1
mov dword [esi + 0x260], 3
mov dword [esi + 8], eax
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [esi + 0x10], eax
push eax
call fcn.004d98a0
add esp, 4
mov byte [esi + 2], 0
mov byte [esi + 3], 1
lea ecx, [esi + 0x44]
push eax
push ecx
call fcn.004d9a80
add esp, 8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov byte [esi + 2], 0
mov byte [esi + 3], 1
push ecx
push edx
push eax
call fcn.004d9a00
add esp, 0xc
mov edx, dword [ebp + 0xc]
lea edi, [esi + 0x58]
movzx ecx, byte [edx + 0xc]
mov byte [eax + 0x28], cl
movzx ecx, byte [edx + 0xd]
mov byte [eax + 0x29], cl
cmp byte [edx + 0xe], 0
je 0x499be5
movzx eax, byte [0x69b8b9]
push 4
push 8
call fcn.00407070
add esp, 8
test eax, eax
je 0x49a272
mov ecx, dword [esi + 0x58]
mov ebx, 0x60d3dc
mov dword [eax + 4], 1
mov dword [eax], 1
test ecx, ecx
je 0x499c84
lock dec dword [ecx]
jne 0x499c84
mov dword [esi + 8], eax
mov dword [esi + 0x260], 0x10
push edi
call fcn.0042de60
add esp, 4
mov eax, dword [esi + 8]
mov ebx, 0x60d3dc
jmp 0x499c84
movzx ecx, byte [esi + 0x193]
mov byte [esi + 7], 1
mov dword [esi + 0x260], 0
mov byte [edx + 0xf], cl
movzx ecx, word [esi + 0x191]
mov word [edx + 0xd], cx
mov ecx, dword [esi + 0x194]
mov dword [edx + 8], 2
mov byte [edx + 0xc], al
mov dword [edx + 0x10], ecx
lea ecx, [esi + 0xb4]
mov dword [edx + 4], 0
mov dword [edx], 1
call fcn.0049ccf0
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x260], 0x12
push eax
call fcn.0049e360
add esp, 4
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0xc], 0xffffffff
je 0x499bce
lea ecx, [eax + 0xc]
mov dword [esi + 0x260], 0x11
call fcn.004516c0
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x260], 0xffffffff
call fcn.00452840
jmp 0x49a25a
cmp byte [edx + 0xf], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 8]
je 0x499c9a
mov byte [esi + 2], 0
mov byte [esi + 3], 1
push dword [esi + 0x10]
call fcn.004d98a0
add esp, 4
mov dword [esi + 0x190], 1
mov dword [esi + 0x194], 1
mov dword [esi + 0x198], eax
movzx eax, byte [0x69b8b9]
push 4
push 0xc
call fcn.00407070
add esp, 8
test eax, eax
je 0x49a28c
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x58]
movsd xmm0, qword [esi + 0x190]
mov ebx, 0x60d3c4
mov dword [eax + 8], ecx
test edx, edx
lea ecx, [esi + 0x58]
movsd qword [eax], xmm0
je 0x499c84
lock dec dword [edx]
jne 0x499c84
mov dword [esi + 8], eax
mov dword [esi + 0x260], 0xe
push ecx
call fcn.0042de60
add esp, 4
mov eax, dword [esi + 8]
mov ebx, 0x60d3c4
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x260], 5
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
mov dword [esi + 0x18], ecx
xor eax, eax
cmp byte [esi + 0x6c], 0
mov ecx, dword [esi + 0x4c]
lea ebx, [esi + 0x60]
mov byte [esi + 0xc], 1
mov byte [esi + 0xd], 1
mov dword [esi + 0x260], 5
lea edx, [esi + 0x18]
lea edi, [esi + 0xd8]
cmovne eax, ecx
test ecx, ecx
movsd qword [esi + 0x88], xmm0
movsd qword [esi + 0x80], xmm1
movsd qword [esi + 0x78], xmm2
cmove eax, ecx
mov ecx, dword [esi + 0x54]
push ebx
push ecx
push eax
push 0
push edx
push edi
call fcn.004d9ef0
add esp, 0x18
cmp dword [esi + 0xe0], 2
jne 0x499dbd
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0x198], 2
mov dword [esi + 0x260], 0xd
mov dword [esi + 0x19c], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x1a0], ecx
mov dword [esi + 0x194], 0
mov dword [esi + 0x190], 1
push eax
call fcn.0049e360
add esp, 4
cmp dword [esi + 0x84], 0xffffffff
je 0x499d78
lea ecx, [esi + 0x84]
mov dword [esi + 0x260], 0xc
call fcn.004516c0
lea ecx, [esi + 0x78]
mov byte [esi + 5], 1
mov dword [esi + 0x260], 4
call fcn.00452840
mov eax, dword [esi + 0x18]
lock dec dword [eax]
jne 0x49a174
lea eax, [esi + 0x18]
mov byte [esi + 2], 1
mov byte [esi + 3], 0
mov dword [esi + 0x260], 3
push eax
call fcn.0042d770
add esp, 4
jmp 0x49a174
lea eax, [esi + 0xe0]
cmp dword [esi + 0x44], 0
mov ebx, 0
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
mov eax, dword [esi + 0x18]
movsd qword [esi + 0xa0], xmm1
movsd xmm1, qword [esi + 0xd8]
movsd qword [esi + 0x98], xmm0
mov dword [esi + 0x30], eax
movsd qword [esi + 0xac], xmm1
je 0x499e22
lea ecx, [esi + 0x48]
mov dword [esi + 0x3c], eax
mov byte [esi + 0xe], 1
mov dword [esi + 0x260], 7
push ecx
call fcn.004d98a0
add esp, 4
mov ebx, 1
mov dword [esi + 0x38], eax
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x34], ebx
test edi, edi
je 0x499e85
mov edx, dword [esi + 0x54]
xor ecx, ecx
mov eax, 2
test edx, edx
mov dword [esi + 0x24], edx
je 0x499e75
cmp edx, 0x3fffffff
ja 0x49a2a4
add edx, edx
test edx, edx
js 0x49a2bc
je 0x499e75
movzx eax, byte [0x69b8b9]
push 2
push edx
mov dword [esi + 8], edx
call fcn.00407070
add esp, 8
test eax, eax
je 0x49a2e5
mov ecx, dword [esi + 8]
push ecx
push edi
mov dword [esi + 0x1c], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x499e8c
mov dword [esi + 0x1c], 0
movzx ecx, byte [esi + 0x6d]
movzx eax, byte [esi + 0x6c]
mov byte [esi + 0x16], cl
mov ecx, dword [esi + 0x58]
mov byte [esi + 0x17], al
test ecx, ecx
je 0x499eb5
mov eax, dword [esi + 0x5c]
lock inc dword [ecx]
jle 0x49a288
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
jmp 0x499ebc
mov dword [esi + 0x70], 0
mov eax, dword [esi + 0x98]
movsd xmm0, qword [esi + 0x88]
movsd xmm2, qword [esi + 0x78]
movsd xmm1, qword [esi + 0x80]
xor edi, edi
mov dword [esi + 0x28], ecx
test eax, eax
movsd qword [esi + 0x1a0], xmm0
movsd qword [esi + 0x198], xmm1
movsd qword [esi + 0x190], xmm2
mov dword [esi + 0x94], eax
je 0x499f5a
movsd xmm0, qword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
movsd qword [esi + 0xd8], xmm0
mov dword [esi + 0xe0], edi
mov ebx, dword [esi + 0xd8]
test ebx, ebx
je 0x499f6c
js 0x49a2d4
movzx eax, byte [0x69b8b9]
push 1
push ebx
call fcn.00407070
add esp, 8
test eax, eax
jne 0x499f76
mov dword [esi + 0x260], 0xb
push ebx
push 1
call fcn.005a08c0
add esp, 8
jmp 0x49a303
mov eax, 1
xor ebx, ebx
cmp dword [esi + 0x60], 0
mov dword [esi + 8], eax
jne 0x499fb1
jmp 0x499fe6
mov eax, 1
mov edi, str.unable_to_find_any_user_specified_roots_in_the_final_cert_chainC:UsersLitch1.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8_tokio_1.33.0_srcio_read_buf.rs
mov dword [esi + 0x10], ebx
push ebx
push edi
mov dword [esi + 8], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + 0xd8]
mov dword [esi + 0x260], 9
push eax
call fcn.004d9b30
add esp, 4
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 8]
xor edi, edi
cmp dword [esi + 0x60], 0
mov dword [esi + 8], eax
je 0x499f6a
lea eax, [esi + 0x60]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x260], 0xa
push eax
lea eax, [esi + 0xd8]
push eax
call fcn.004736e0
add esp, 8
mov edi, dword [esi + 0xd8]
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe0]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
movsd xmm0, qword [esi + 0x190]
movsd xmm1, qword [esi + 0x198]
mov byte [esi + 0xf], 0
mov dword [esi + 0x260], 6
mov dword [esi + 0x16c], edx
mov edx, dword [esi + 0x24]
mov dword [esi + 0x170], edx
mov dword [esi + 0x174], edx
movsd qword [esi + 0xe0], xmm0
movsd xmm0, qword [esi + 0x1a0]
mov edx, dword [esi + 8]
movsd qword [esi + 0xe8], xmm1
movsd qword [esi + 0xf0], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x118], 1
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x130], 1
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x34]
mov dword [esi + 0x150], ebx
mov dword [esi + 0x14c], ebx
movsd xmm0, qword [esi + 0xac]
mov dword [esi + 0xd8], edx
mov edx, dword [esi + 0x38]
mov dword [esi + 0xdc], edx
mov edx, dword [esi + 0x28]
mov dword [esi + 0xf8], 0x10000
mov byte [esi + 0xfc], 0
movsd qword [esi + 0x158], xmm0
mov dword [esi + 0x160], edx
mov edx, dword [esi + 0x74]
mov dword [esi + 0x164], edx
mov edx, dword [esi + 0x30]
mov dword [esi + 0x168], edx
mov dword [esi + 0x178], 1
mov dword [esi + 0x17c], 0
mov dword [esi + 0x180], edi
mov dword [esi + 0x188], ecx
movzx edx, byte [esi + 0x17]
movzx ecx, byte [esi + 0x16]
mov edi, dword [esi + 0x94]
mov dword [esi + 0x184], eax
mov byte [esi + 0x18c], dl
mov byte [esi + 0x18d], cl
lea ecx, [esi + 0x190]
lea edx, [esi + 0xd8]
mov dword [esi + 0x40], edi
mov word [esi + 0x18e], 0x100
call fcn.004a1fa0
mov eax, dword [esi + 0x190]
or eax, dword [esi + 0x194]
je 0x49a207
mov edi, dword [esi + 0x198]
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x1a0]
cmp edi, 2
je 0x49a1c2
mov dword [esi + 8], eax
lea eax, [esi + 0x1a4]
push 0xac
push eax
lea eax, [esi + 0xd8]
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 8]
mov ecx, ebx
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
lea eax, [ebx + 0x14]
push 0xac
lea ecx, [esi + 0xd8]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx], 1
lea ecx, [esi + 0x44]
mov dword [esi + 0x260], 1
call fcn.0049cbb0
jmp 0x49a241
mov edi, dword [ebp + 8]
lea eax, [esi + 0x198]
lea ecx, [edi + 8]
push 0xb8
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 4], 0
mov dword [edi], 0
lea ecx, [esi + 0x44]
mov dword [esi + 0x260], 1
call fcn.0049cbb0
lea ecx, [esi + 0xb4]
mov byte [esi + 7], 0
mov dword [esi + 0x260], 0
call fcn.0049ccf0
mov ecx, dword [esi + 0x258]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 2], 0
mov byte [esi + 3], 1
push 8
push 4
call fcn.005a08c0
add esp, 8
jmp 0x49a303
ud2
mov dword [esi + 0x260], 0xf
push 0xc
push 4
call fcn.005a08c0
add esp, 8
jmp 0x49a303
mov dword [esi + 0x20], ebx
mov byte [esi + 6], 1
mov dword [esi + 0x260], 8
call fcn.0058c7c0
jmp 0x49a303
mov dword [esi + 0x20], ebx
mov byte [esi + 6], 1
mov dword [esi + 0x260], 8
call fcn.0058c7c0
jmp 0x49a303
mov dword [esi + 0x260], 0xb
call fcn.0058c7c0
jmp 0x49a303
mov dword [esi + 0x20], ebx
mov byte [esi + 6], 1
mov dword [esi + 0x260], 8
push dword [esi + 8]
push 2
call fcn.005a08c0
add esp, 8
ud2