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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edx, edx
mov dword [esp + 0x64], ecx
je 0x613e6b
cmp edx, 1
jne 0x6140c9
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
test al, 1
jne 0x6141d9
xor ebx, ebx
xor edi, edi
mov dword [esp + 8], edi
mov edi, ebx
lea esi, [ebx + ebx + 1]
imul edi, ebx
mov dword [esp + 0x10], ebx
mov ebx, eax
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
jne 0x613d43
mov ebx, dword [esp + 0x10]
cmp ebx, 7
jae 0x613d25
mov ecx, dword [ebp + 8]
test ebx, ebx
je 0x613d2e
mov eax, edi
pause
dec eax
jne 0x613d1e
jmp 0x613d2e
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
add edi, esi
inc ebx
add esi, 2
test al, 1
je 0x613cfc
jmp 0x6141e0
cmp ebx, 0x1e
jne 0x613d93
mov edi, dword [esp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x613d9a
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov ecx, 0x270
mov edx, 4
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x6146a5
mov edi, eax
push 0x270
push 0
push eax
call fcn.0064ad90
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
jmp 0x613d9a
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 8]
test edx, edx
jne 0x613de9
mov dword [esp + 0xc], eax
mov ecx, 0x270
mov edx, 4
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x6146a5
push 0x270
push 0
push eax
mov dword [esp + 0x14], eax
call fcn.0064ad90
mov edx, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
lock cmpxchg dword [ecx + 0x44], edx
jne 0x613e49
mov dword [ecx + 4], edx
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edx
lea edx, [eax + 2]
mov ecx, edi
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0xc]
lock cmpxchg dword [edx + 0x40], edi
je 0x6145f3
mov ebx, dword [esp + 0x10]
mov eax, 6
mov edi, ecx
cmp ebx, 6
cmovb eax, ebx
test eax, eax
je 0x613e30
cmp ebx, 6
mov eax, 6
cmovb eax, ebx
imul eax, eax
pause
dec eax
jne 0x613e2b
mov eax, dword [ebp + 8]
inc ebx
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov eax, ecx
test al, 1
je 0x613cef
jmp 0x6141e7
test edi, edi
je 0x613e60
push edi
push 0
push dword [0x8032a8]
mov edi, edx
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x613e62
mov edi, edx
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
jmp 0x613e34
lea eax, [esp + 0x28]
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
mov dword [eax + 8], 0x3b9aca00
movaps xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x88]
test eax, ecx
jne 0x6141a8
xor esi, esi
xor edx, edx
xor edi, edi
inc edx
mov dword [esp + 0x4c], edx
cmp edi, 6
mov edx, 6
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 0x10], ecx
cmovb edx, edi
xor esi, esi
mov edi, ebx
dec eax
sub esi, dword [ebx + 0x84]
mov ebx, dword [ebx + 0xd4]
and eax, ecx
imul edx, edx
lea ecx, [eax + eax*4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ebx
mov ebx, dword [ebx + ecx*4 + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x613ef7
inc eax
mov ebx, edi
cmp eax, dword [edi + 0x80]
jae 0x613f37
lea esi, [ecx + 1]
jmp 0x613f3f
add ebx, dword [edi + 0x84]
lea eax, [ecx + 1]
cmp ebx, eax
jne 0x613f6a
mfence
mov eax, dword [edi]
mov esi, dword [esp + 0xc]
add eax, dword [edi + 0x84]
cmp eax, ecx
je 0x613fb0
mov ebx, edi
mov edi, dword [esp + 8]
mov eax, 6
cmp edi, 6
cmovb eax, edi
test eax, eax
je 0x613f90
pause
dec edx
jne 0x613f30
jmp 0x613f90
and esi, ecx
add esi, dword [ebx + 0x84]
mov eax, ecx
mov edi, dword [esp + 8]
lock cmpxchg dword [ebx + 0x40], esi
je 0x61425c
mov esi, dword [esp + 0xc]
cmp edi, 6
mov eax, 6
cmovb eax, edi
test eax, eax
je 0x613f90
pause
dec edx
jne 0x613f63
jmp 0x613f90
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
cmp edi, 7
jae 0x613f87
mov ebx, dword [ebp + 8]
test edi, edi
je 0x613f90
mov eax, esi
pause
dec eax
jne 0x613f80
jmp 0x613f90
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x40]
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 0x88]
inc edi
add esi, edx
add edx, 2
test eax, ecx
je 0x613e9f
jmp 0x6141a8
mov eax, dword [esp + 0x30]
cmp eax, 0x3b9aca00
je 0x613ffa
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
call fcn.005a62b0
cmp eax, esi
mov edi, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
sbb edx, ebx
mov edx, dword [esp + 0x10]
jb 0x613ffa
xor eax, dword [esp + 8]
xor edi, ebx
mov ecx, ebx
or edi, eax
jne 0x61462b
cmp dword [esp + 0xc], edx
jae 0x61462b
call fcn.005c1160
test eax, eax
je 0x61406e
mov edi, dword [eax]
mov ebx, dword [ebp + 8]
mov esi, eax
mov dword [eax], 0
test edi, edi
je 0x614086
lea eax, [esp + 0x70]
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea edx, [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
call fcn.00614ed8
mov eax, dword [esi]
mov dword [esi], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x613e87
lock dec dword [eax]
jne 0x613e87
lea ecx, [esp + 0x14]
call fcn.005c3678
jmp 0x613e87
call fcn.0065a2d0
mov ebx, dword [ebp + 8]
mov esi, eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x14], eax
jmp 0x614099
call fcn.0065a2d0
mov esi, eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x50]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
call fcn.00614ed8
lock dec dword [esi]
jne 0x613e87
lea ecx, [esp + 0x50]
call fcn.005c3678
jmp 0x613e87
lea eax, [ebx + 8]
xorps xmm0, xmm0
mov dword [esp + 0xd0], 0x3b9aca00
mov dword [esp + 0xc0], 0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 8], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x803890]
test eax, 0x7fffffff
jne 0x6144c8
mov dword [esp + 0xc], 0
mov al, byte [ebx + 0xc]
test al, al
jne 0x61464a
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x61416d
call fcn.005bcbb0
test eax, eax
je 0x614682
mov ecx, eax
mov eax, dword [ebp + 8]
shl esi, 2
xor edi, edi
lea ebx, [esi + esi*2]
mov dword [esp + 0x10], ecx
add eax, 0x28
mov edx, dword [eax]
mov dword [esp + 0x4c], eax
mov esi, dword [edx]
cmp dword [esi + 0x14], ecx
je 0x614164
mov ecx, dword [edx + 4]
xor eax, eax
lock cmpxchg dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
je 0x61444a
add edx, 0xc
inc edi
add ebx, 0xfffffff4
jne 0x614149
mov eax, dword [ebp + 8]
cmp byte [eax + 0x40], 0
je 0x6142a5
mov eax, dword [ebp + 0xc]
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 8]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x14], 1
jmp 0x614407
mov edx, dword [ebp + 0xc]
mov eax, 2
mov ecx, dword [edx]
cmp ecx, 5
je 0x614410
mov eax, dword [edx + 0xc]
movsd xmm0, qword [edx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
xor eax, eax
movsd qword [esp + 0x1c], xmm0
inc eax
jmp 0x614410
mov eax, dword [esi]
add esi, 4
jmp 0x614239
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 8]
xor ebx, ebx
xor edx, edx
test edi, edi
je 0x614202
push edi
push 0
push dword [0x8032a8]
mov edi, edx
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, edi
mov eax, dword [esi]
add esi, 4
test edx, edx
je 0x614239
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 4], eax
movsd xmm0, qword [esi]
movsd qword [edx + ecx*4 + 8], xmm0
mov eax, dword [esi + 8]
mov dword [edx + ecx*4 + 0x10], eax
lock or dword [edx + ecx*4 + 0x14], 1
mov ecx, dword [ebp + 8]
sub ecx, 0xffffff80
call fcn.00614cf3
jmp 0x614438
cmp eax, 5
je 0x614438
mov dword [esp + 0x18], eax
movsd xmm0, qword [esi]
mov eax, dword [esi + 8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], eax
jmp 0x61441d
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov esi, dword [ebp + 0xc]
inc ecx
add ebx, 0xb0
lea eax, [eax + edx*4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
movsd xmm0, qword [esi + 4]
movsd qword [eax + 4], xmm0
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x10], ecx
mov ecx, ebx
call fcn.00614cf3
mov eax, 2
jmp 0x614410
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 8]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0xc]
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], al
lea eax, [esp + 0xb0]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call fcn.005c1160
test eax, eax
je 0x614507
mov ebx, dword [eax]
mov esi, eax
mov dword [eax], 0
test ebx, ebx
je 0x61457d
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 5
cmp eax, 5
je 0x6146b6
movsd xmm1, qword [esp + 0x34]
lea edi, [esp + 0x70]
movsd xmm0, qword [esp + 0x2c]
movsd xmm2, qword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov dword [edi], eax
mov edx, edi
movsd qword [edi + 0xc], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [edi + 4], xmm0
movsd qword [edi + 0x14], xmm2
movsd qword [edi + 0x1c], xmm1
push ebx
call fcn.0061478a
add esp, 4
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
mov dword [edi], eax
je 0x614382
lock dec dword [eax]
jne 0x614382
lea ecx, [esp + 0x70]
call fcn.005c3678
movsd xmm0, qword [esp + 0x14]
movsd xmm1, qword [esp + 0x1c]
mov eax, dword [esp + 0x24]
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
cmp eax, 3
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xa8], xmm1
je 0x614507
movsd xmm0, qword [esp + 0xa0]
movsd xmm1, qword [esp + 0xa8]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], 5
je 0x61440c
lea esi, [esp + 0x28]
mov ecx, esi
call fcn.00614759
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
call fcn.005aa9d0
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x614438
test eax, eax
je 0x614671
movsd xmm0, qword [esp + 0x18]
mov eax, dword [esp + 0x64]
movsd xmm1, qword [esp + 0x20]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x614442
mov eax, dword [esp + 0x64]
mov dword [eax], 5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edx + 8]
test eax, eax
je 0x614454
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 8]
add ecx, 0x18
call fcn.005c0ef0
mov edx, dword [esp + 0x4c]
lea esi, [esp + 0x28]
mov ecx, esi
push 0x7f4a34
push edi
call fcn.006146f6
add esp, 8
cmp dword [esi], 0
je 0x61416d
mov esi, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x70], xmm0
mov dword [esp + 0x78], esi
mov dword [esp + 0xc0], esi
call fcn.005aa9d0
test esi, esi
je 0x6144d8
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov byte [esi + 0x10], 1
jmp 0x6144e4
call fcn.0065a0d0
xor al, 1
mov dword [esp + 0xc], eax
jmp 0x614110
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 5
jne 0x6146cf
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], 2
lock dec dword [eax]
jne 0x61440c
lea ecx, [esp + 0x70]
call fcn.005c3678
jmp 0x61440c
call fcn.0065a2d0
mov esi, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 5
cmp eax, 5
je 0x6146b6
movsd xmm1, qword [esp + 0x34]
lea edx, [esp + 0x70]
movsd xmm0, qword [esp + 0x2c]
movsd xmm2, qword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov dword [edx], eax
movsd qword [edx + 0xc], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [edx + 4], xmm0
movsd qword [edx + 0x14], xmm2
movsd qword [edx + 0x1c], xmm1
push esi
call fcn.0061478a
add esp, 4
lock dec dword [esi]
jne 0x6143ef
lea ecx, [esp + 0x50]
call fcn.005c3678
jmp 0x6143ef
call fcn.0065a2d0
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 5
cmp eax, 5
je 0x6146b6
movsd xmm1, qword [esp + 0x34]
lea edx, [esp + 0x70]
movsd xmm0, qword [esp + 0x2c]
movsd xmm2, qword [esp + 0x3c]
lea ecx, [esp + 0x50]
mov dword [edx], eax
movsd qword [edx + 0xc], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [edx + 4], xmm0
movsd qword [edx + 0x14], xmm2
movsd qword [edx + 0x1c], xmm1
push esi
call fcn.0061478a
add esp, 4
lock dec dword [esi]
jne 0x6143a2
lea ecx, [esp + 0x14]
call fcn.005c3678
jmp 0x6143a2
cmp ebx, 0x1e
mov edi, ecx
jne 0x614622
mov edx, dword [esp + 8]
test edi, edi
je 0x6146e5
mov eax, dword [ebp + 8]
mov ebx, 0x1e
mov dword [eax + 0x44], edi
lock add dword [eax + 0x40], 2
mov dword [edx], edi
mov eax, dword [esi]
add esi, 4
jmp 0x61420b
mov edx, dword [esp + 8]
jmp 0x6141eb
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
jmp 0x614410
mov ecx, dword [esp + 8]
lea eax, [esp + 0x70]
mov edx, 0x2b
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov byte [eax + 4], cl
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x7f4814
push 0x7f3fd8
jmp 0x61469a
mov ecx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
mov edx, 0x28
push 0x7f4664
jmp 0x6146c5
lea eax, [esp + 0x70]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
mov edx, 0x46
push 0x7f49d0
push 0x7f3fc8
push eax
call fcn.006525c0
add esp, 0xc
ud2
mov ecx, 4
mov edx, 0x270
call fcn.00651860
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7f4ae8
call fcn.006522d0
add esp, 4
ud2
call fcn.00614759
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7f4824
jmp 0x6146c5
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7f46f0
jmp 0x6146c5