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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov edi, dword [ebp + 8]
lea esi, [esp + 0x30]
mov ecx, esi
mov edx, dword [edi + 8]
add edx, 8
call fcn.00438e75
cmp dword [esi], 0
jne 0x496ba2
lea esi, [esp + 0x30]
cmp byte [edi + 0x10], 0
mov edi, dword [edi + 0xc]
mov ebx, dword [esi + 4]
mov al, byte [esi + 8]
mov cl, byte [ebx + 0x25]
mov byte [esp + 0xc], al
sete al
add al, al
mov byte [esp + 0x10], cl
and cl, 0xfd
or al, cl
mov ecx, esi
mov byte [ebx + 0x25], al
movzx edx, al
push edi
call fcn.00629a96
pop eax
cmp byte [esi], 4
jne 0x4964e9
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov edi, ebx
jmp 0x496590
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x10]
mov esi, dword [ebp + 8]
mov edi, ebx
cmp cl, 4
mov byte [ebx + 0x25], al
jne 0x49650f
mov dword [esp + 0x14], 0
jmp 0x496590
lea eax, [esp + 0x20]
mov ebx, ecx
and dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0x20
mov byte [esp + 0x50], 3
and dword [esp + 0x30], 0
and dword [esp + 0x38], 0
mov dword [esp + 0x10], edx
mov dword [eax], ecx
lea ecx, [esp + 0x70]
mov dword [eax + 4], edx
mov dword [ecx], 1
and dword [ecx + 4], 0
and dword [ecx + 8], 0
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0x8132a4
push ecx
push eax
call fcn.005e2620
pop ecx
pop edx
test al, al
jne 0x496bd7
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.005764ce
mov al, byte [esp + 0xc]
mov ecx, edi
movzx edx, al
call fcn.00496cfe
mov eax, dword [esi]
test eax, eax
je 0x496694
cmp eax, 1
jne 0x49683e
mov esi, dword [esi + 4]
lea eax, [esp + 0x30]
xor ecx, ecx
and dword [eax], 0
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
mov dword [esp + 0xc], 0
test al, 1
jne 0x4968f1
mov ebx, eax
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
jne 0x4965ed
lea ecx, [esp + 0x30]
call fcn.0040154e
jmp 0x496678
mov ecx, dword [esp + 0xc]
cmp ebx, 0x1e
jne 0x49662a
test ecx, ecx
jne 0x49662a
mov ecx, 0x1f4
mov dword [esp + 0x10], eax
push 4
pop edx
call fcn.00401e40
push 0x1f4
push 0
mov dword [esp + 0x14], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
call fcn.005777fa
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x496661
mov dword [esp + 0x10], eax
mov ecx, 0x1f4
push 4
pop edx
call fcn.00401e40
mov edi, eax
push 0x1f4
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
lock cmpxchg dword [esi + 0x44], edi
jne 0x496685
mov dword [esi + 4], edi
mov eax, dword [esp + 0x10]
lea ecx, [eax + 2]
lock cmpxchg dword [esi + 0x40], ecx
je 0x4969e2
lea ecx, [esp + 0x30]
call fcn.0040fc2b
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
xor ecx, ecx
jmp 0x4965cb
mov ecx, dword [esp + 0xc]
call fcn.005777fa
mov dword [esp + 0xc], edi
jmp 0x496678
mov esi, dword [esi + 4]
and dword [esp + 0x40], 0
lea eax, [esp + 0x70]
xorps xmm0, xmm0
mov dword [eax + 8], 0x3b9aca00
movaps xmmword [esp + 0x30], xmm0
and dword [esp + 0x20], 0
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x88]
test eax, ecx
jne 0x49692e
xor edi, edi
mov edx, esi
dec eax
sub edi, dword [esi + 0x84]
mov esi, dword [esi + 0xd4]
and eax, ecx
mov ebx, eax
shl ebx, 4
mov dword [esp + 0xc], esi
mov esi, dword [esi + ebx]
cmp ecx, esi
jne 0x4966f8
inc eax
mov esi, edx
cmp eax, dword [edx + 0x80]
jae 0x49671a
lea edi, [ecx + 1]
jmp 0x496722
add esi, dword [edx + 0x84]
lea eax, [ecx + 1]
mov edi, edx
cmp esi, eax
jne 0x49673d
mfence
mov esi, edi
mov eax, dword [edi]
add eax, dword [edi + 0x84]
cmp eax, ecx
jne 0x49672f
jmp 0x49674d
and edi, ecx
add edi, dword [esi + 0x84]
mov eax, ecx
lock cmpxchg dword [esi + 0x40], edi
je 0x496990
lea ecx, [esp + 0x20]
call fcn.0040fc2b
jmp 0x4966b4
lea ecx, [esp + 0x20]
call fcn.0040154e
mov esi, edi
jmp 0x4966b4
mov eax, dword [esp + 0x78]
cmp eax, 0x3b9aca00
je 0x4967ab
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov dword [esp + 0xc], eax
call fcn.005f2e70
mov dword [esp + 0xb0], ecx
mov ecx, esi
cmp eax, ebx
mov esi, edx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x10], edi
sbb esi, edi
mov esi, ecx
mov ecx, dword [esp + 0xc]
jb 0x4967ab
xor eax, dword [esp + 0xb4]
xor edx, dword [esp + 0x10]
or edx, eax
jne 0x496b83
cmp dword [esp + 0xb0], ecx
jae 0x496b83
lea eax, [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
call fcn.005f7a40
test eax, eax
je 0x496814
mov edi, dword [eax]
and dword [eax], 0
mov ebx, eax
test edi, edi
je 0x496814
lea ecx, [esp + 0x20]
lea edx, [esp + 0x90]
mov dword [esp + 0x90], edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.00495eec
mov eax, dword [ebx]
lea ecx, [esp + 0xa0]
mov dword [ebx], edi
mov dword [esp + 0xa0], eax
call fcn.0040fab0
jmp 0x4966af
call fcn.006432a0
lea edi, [esp + 0xa0]
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], eax
mov edx, edi
call fcn.00495eec
mov ecx, edi
call fcn.0047461c
jmp 0x4966af
mov edi, dword [esi + 4]
and dword [esp + 0x80], 0
lea esi, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0xa8], 0x3b9aca00
mov ecx, esi
movaps xmmword [esp + 0x70], xmm0
add edi, 8
mov edx, edi
call fcn.00438e75
mov ecx, esi
mov edx, 0x9f460c
call fcn.00495a72
lea esi, [esp + 0x20]
mov byte [esp + 0xc], dl
lea edx, [eax + 0x20]
mov ebx, eax
mov ecx, esi
call fcn.00495aae
cmp dword [esi], 0
je 0x496952
mov esi, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
movzx edx, byte [esp + 0xc]
mov ecx, ebx
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], esi
mov dword [esp + 0x80], esi
call fcn.00496cfe
test esi, esi
je 0x496bfb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 8], edx
mov byte [esi + 0x10], 1
call fcn.0047461c
jmp 0x4969c3
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0xc]
call fcn.005777fa
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jne 0x496a0c
mov edx, dword [esp + 0x14]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
jmp 0x4969d3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
jmp 0x49698b
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.0040fab0
cmp byte [ebx + 0x38], 0
je 0x496a3f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
movzx edx, byte [esp + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, ebx
call fcn.00496cfe
xor eax, eax
inc eax
jmp 0x4969c6
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc ecx
add esi, 0xb0
add edx, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [edx + 4], eax
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
mov dword [edx], ecx
mov ecx, esi
call fcn.00495e3c
push 2
pop eax
cmp eax, 2
je 0x496a2e
test eax, eax
je 0x496bc8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
call fcn.00404e53
jmp 0x496a2e
cmp ebx, 0x1e
jne 0x496a36
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x496c1d
mov dword [esi + 0x44], edx
lock add dword [esi + 0x40], 2
mov dword [edi + 0x1f0], edx
push 0x1e
pop ebx
mov edx, dword [esp + 0x14]
shl ebx, 4
sub esi, 0xffffff80
mov dword [edi + ebx], edx
mov dword [edi + ebx + 8], ecx
mov dword [edi + ebx + 4], eax
mov ecx, esi
lock or dword [edi + ebx + 0xc], 1
call fcn.00495e3c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], edi
jmp 0x4968fd
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x40], eax
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x4c], al
call fcn.005f7a40
test eax, eax
je 0x496b39
mov ebx, dword [eax]
and dword [eax], 0
mov edi, eax
test ebx, ebx
je 0x496b5a
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
mov dword [eax], ebx
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
push eax
call fcn.00495b60
pop eax
mov eax, dword [edi]
lea ecx, [esp + 0x90]
mov dword [edi], ebx
mov dword [ecx], eax
call fcn.0040fab0
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp eax, 3
movsd qword [esp + 0x90], xmm0
mov dword [esp + 0x98], ecx
je 0x496b39
mov ecx, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
mov dword [esp + 0x6c], ecx
movsd qword [esp + 0x64], xmm0
mov dword [esp + 0x60], eax
cmp byte [esp + 0x4c], 2
je 0x496b30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00404e53
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.00496cfe
mov eax, dword [esp + 0x60]
jmp 0x4969c6
call fcn.006432a0
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x30]
push esi
call fcn.00495b60
pop eax
mov ecx, esi
call fcn.0047461c
jmp 0x496b0f
call fcn.006432a0
lea edi, [esp + 0x90]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
mov dword [edi], eax
push edi
call fcn.00495b60
pop eax
mov ecx, edi
call fcn.0047461c
jmp 0x496ace
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
xor eax, eax
jmp 0x4969c6
mov cl, byte [esp + 0x38]
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x70]
mov dword [esi], eax
mov byte [esi + 4], cl
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x8133d4
push 0x8132fc
push esi
jmp 0x496bf1
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codecannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_std_src_threadlocal.rs
push 0x9f4484
jmp 0x496c15
lea eax, [esp + 0xa0]
push 0x37
pop edx
mov ecx, str.a_Display_implementation_returned_an_error_unexpectedly_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_string.rs
push 0xa38050
push 0x8132bc
push eax
call fcn.0063cff0
add esp, 0xc
ud2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.00404e53
push 0x2b
pop edx
mov ecx, 0xa3a547
push 0x9f461c
call fcn.0063cd70
pop eax
ud2
push 0x2b
pop edx
mov ecx, 0xa3a547
push 0x9f44e8
jmp 0x496c15