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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov edi, dword [ebp + 8]
mov esi, ecx
test edx, edx
je 0x5d91e2
cmp edx, 1
jne 0x5d943f
mov ebx, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
test bl, 1
jne 0x5d9824
xor edx, edx
xor eax, eax
mov dword [esp + 8], esi
mov edi, edx
lea esi, [edx + edx + 1]
mov dword [esp + 0x10], eax
imul edi, edx
mov eax, ebx
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
jne 0x5d90bd
cmp edx, 7
jae 0x5d909a
test edx, edx
je 0x5d90a4
mov eax, edi
pause
dec eax
jne 0x5d9093
jmp 0x5d90a4
mov ebx, edx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, ebx
mov eax, dword [ebp + 8]
add edi, esi
inc edx
add esi, 2
mov ebx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
test bl, 1
je 0x5d907c
jmp 0x5d97d5
cmp ebx, 0x1e
mov dword [esp + 0xc], eax
jne 0x5d910f
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 8]
jne 0x5d9113
mov dword [esp + 4], ecx
mov edi, edx
mov ecx, 0x178
mov edx, 4
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x5d98df
push 0x178
push 0
mov dword [esp + 0x18], eax
push eax
call fcn.0064ad90
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, edi
jmp 0x5d9113
mov esi, dword [esp + 8]
test ecx, ecx
jne 0x5d915e
mov dword [esp + 4], edx
mov ecx, 0x178
mov edx, 4
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x5d98df
push 0x178
push 0
push eax
mov edi, eax
call fcn.0064ad90
mov ecx, edi
add esp, 0xc
mov edx, dword [ebp + 8]
xor eax, eax
lock cmpxchg dword [edx + 0x44], edi
jne 0x5d91ba
mov dword [edx + 4], ecx
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [esp + 4], ecx
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
lock cmpxchg dword [ecx + 0x40], edi
je 0x5d984d
cmp edx, 6
mov eax, 6
cmovb eax, edx
test eax, eax
je 0x5d91a1
cmp edx, 6
mov eax, 6
cmovb eax, edx
imul eax, eax
pause
dec eax
jne 0x5d919c
mov eax, dword [esp + 0x10]
inc edx
mov ebx, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
test bl, 1
je 0x5d906f
jmp 0x5d97d1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5d91d7
push eax
push 0
push dword [0x8032a8]
mov esi, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
jmp 0x5d91d9
mov eax, ecx
mov edx, dword [esp + 4]
mov ecx, dword [ebp + 8]
jmp 0x5d91a6
lea eax, [esp + 0x70]
lea ecx, [esp + 0x50]
xorps xmm0, xmm0
mov dword [esp + 8], esi
mov dword [eax + 8], 0x3b9aca00
movaps xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x88]
test eax, ecx
jne 0x5d9517
xor esi, esi
xor edx, edx
xor ebx, ebx
inc edx
mov dword [esp + 0x14], edx
cmp ebx, 6
mov edx, 6
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x10], ecx
cmovb edx, ebx
xor esi, esi
mov ebx, edi
dec eax
sub esi, dword [edi + 0x84]
mov edi, dword [edi + 0xd4]
and eax, ecx
imul edx, edx
lea ecx, [eax + eax*2]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x4c], edi
mov edi, dword [edi + ecx*4 + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jne 0x5d9275
inc eax
mov edi, ebx
cmp eax, dword [ebx + 0x80]
jae 0x5d92b5
lea esi, [ecx + 1]
jmp 0x5d92bd
add edi, dword [ebx + 0x84]
lea eax, [ecx + 1]
cmp edi, eax
jne 0x5d92e8
mfence
mov eax, dword [ebx]
mov esi, dword [esp + 0xc]
add eax, dword [ebx + 0x84]
cmp eax, ecx
je 0x5d932e
mov edi, ebx
mov ebx, dword [esp + 4]
mov eax, 6
cmp ebx, 6
cmovb eax, ebx
test eax, eax
je 0x5d930e
pause
dec edx
jne 0x5d92ae
jmp 0x5d930e
and esi, ecx
add esi, dword [edi + 0x84]
mov eax, ecx
mov ebx, dword [esp + 4]
lock cmpxchg dword [edi + 0x40], esi
je 0x5d9531
mov esi, dword [esp + 0xc]
cmp ebx, 6
mov eax, 6
cmovb eax, ebx
test eax, eax
je 0x5d930e
pause
dec edx
jne 0x5d92e1
jmp 0x5d930e
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0xc]
cmp ebx, 7
jae 0x5d9305
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x5d930e
mov eax, esi
pause
dec eax
jne 0x5d92fe
jmp 0x5d930e
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x88]
inc ebx
add esi, edx
add edx, 2
test eax, ecx
je 0x5d921a
jmp 0x5d9517
mov eax, dword [esp + 0x78]
cmp eax, 0x3b9aca00
je 0x5d9378
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.005a62b0
cmp eax, esi
mov edi, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
sbb edx, ebx
mov edx, dword [esp + 0x10]
jb 0x5d9378
xor eax, dword [esp + 4]
xor edi, ebx
mov ecx, ebx
or edi, eax
jne 0x5d987f
cmp dword [esp + 0xc], edx
jae 0x5d987f
call fcn.005c1160
test eax, eax
je 0x5d93e6
mov ebx, dword [eax]
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [eax], 0
test ebx, ebx
je 0x5d93fe
lea eax, [esp + 0x50]
lea ecx, [esp + 0x70]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov edx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
call fcn.005e3e49
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
mov dword [esp + 0x38], eax
je 0x5d9202
lock dec dword [eax]
jne 0x5d9202
lea ecx, [esp + 0x38]
call fcn.005c3678
jmp 0x5d9202
call fcn.0065a2d0
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], eax
jmp 0x5d9411
call fcn.0065a2d0
mov esi, eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x70]
lea ecx, [esp + 0x38]
mov edx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
call fcn.005e3e49
lock dec dword [esi]
jne 0x5d9202
lea ecx, [esp + 0x28]
call fcn.005c3678
jmp 0x5d9202
add edi, 8
lea ebx, [esp + 0x50]
xorps xmm0, xmm0
mov dword [esp + 8], esi
mov dword [esp + 0x40], 0x3b9aca00
mov dword [esp + 0x80], 0
mov ecx, ebx
mov edx, edi
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x14], edi
call fcn.005f8836
cmp dword [ebx], 0
jne 0x5d9898
mov eax, dword [esp + 0x54]
mov cl, byte [esp + 0x58]
mov esi, dword [eax + 0x28]
mov byte [esp + 0xc], cl
mov dword [esp + 4], eax
test esi, esi
je 0x5d94de
call fcn.005bcbb0
test eax, eax
je 0x5d98c0
mov ecx, eax
mov eax, dword [esp + 4]
shl esi, 2
xor edi, edi
lea esi, [esi + esi*2]
mov dword [esp + 0x10], ecx
add eax, 0x20
mov edx, dword [eax]
mov dword [esp + 0x4c], eax
mov ebx, dword [edx]
cmp dword [ebx + 0x14], ecx
je 0x5d94d5
mov ecx, dword [edx + 4]
xor eax, eax
lock cmpxchg dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x10]
je 0x5d966b
add edx, 0xc
inc edi
add esi, 0xfffffff4
jne 0x5d94ba
mov edi, dword [esp + 4]
cmp byte [edi + 0x38], 0
je 0x5d9571
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx edx, byte [esp + 0xc]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov ecx, edi
call fcn.005aa9d0
mov esi, dword [esp + 8]
jmp 0x5d9640
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
inc eax
jmp 0x5d9644
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x88]
mov ebx, dword [ebp + 0x10]
inc ecx
add edi, 0xb0
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, edi
call fcn.005e16a0
mov esi, dword [esp + 8]
mov eax, 2
jmp 0x5d9644
call fcn.005c1160
test eax, eax
je 0x5d970b
mov edi, dword [eax]
mov ebx, eax
mov dword [eax], 0
test edi, edi
je 0x5d9770
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0x50]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ch, byte [esp + 0xc]
movzx edx, word [esp + 0x35]
mov cl, byte [esp + 0x37]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
lea eax, [esp + 0x70]
mov dword [esi + 8], eax
lea eax, [esp + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], ch
mov word [esi + 0x19], dx
mov byte [esi + 0x1b], cl
lea ecx, [esp + 0x28]
mov edx, esi
push edi
call fcn.005e571c
add esp, 4
mov eax, dword [ebx]
mov dword [ebx], edi
test eax, eax
mov dword [esi], eax
je 0x5d9607
lock dec dword [eax]
jne 0x5d9607
lea ecx, [esp + 0x50]
call fcn.005c3678
movsd xmm0, qword [esp + 0x28]
mov eax, dword [esp + 0x30]
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 8]
cmp eax, 3
je 0x5d98f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, 2
je 0x5d9843
test eax, eax
jne 0x5d9832
mov ecx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
mov edx, 0x28
push 0x7f4664
jmp 0x5d9919
mov eax, dword [edx + 8]
test eax, eax
je 0x5d9675
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 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 0x5d94de
mov esi, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 4]
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x58], esi
mov dword [esp + 0x80], esi
call fcn.005aa9d0
test esi, esi
je 0x5d990a
mov eax, dword [ebp + 0xc]
mov dword [esi], 1
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x50]
lock dec dword [eax]
jne 0x5d950e
lea ecx, [esp + 0x50]
call fcn.005c3678
jmp 0x5d950e
call fcn.0065a2d0
mov esi, eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov ch, byte [esp + 0xc]
mov cl, byte [esp + 0x37]
mov dword [esp + 0x28], esi
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
lea eax, [esp + 0x70]
mov dword [edx + 8], eax
lea eax, [esp + 0x38]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], edi
movzx edi, word [esp + 0x35]
mov byte [edx + 0x18], ch
mov byte [edx + 0x1b], cl
lea ecx, [esp + 0x18]
mov word [edx + 0x19], di
push esi
call fcn.005e571c
add esp, 4
lock dec dword [esi]
jne 0x5d950e
lea ecx, [esp + 0x28]
jmp 0x5d9701
call fcn.0065a2d0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x50]
mov cl, byte [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [edx], ebx
mov dword [edx + 4], edi
lea ebx, [esp + 0x70]
lea edi, [esp + 0x38]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], edi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], edi
mov byte [edx + 0x18], cl
lea ecx, [esp + 0x18]
push esi
call fcn.005e571c
add esp, 4
lock dec dword [esi]
jne 0x5d961b
lea ecx, [esp + 0x28]
call fcn.005c3678
jmp 0x5d961b
mov dword [esp + 0x10], eax
mov esi, dword [esp + 8]
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5d97f8
push eax
push 0
push dword [0x8032a8]
mov edi, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, edi
test ecx, ecx
je 0x5d9824
mov edx, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
mov dword [edx + eax*4 + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [ebp + 8]
lock or dword [edx + eax*4 + 0xc], 1
sub ecx, 0xffffff80
call fcn.005e16a0
xor ecx, ecx
jmp 0x5d9843
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
xor ecx, ecx
inc ecx
mov dword [esi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x1e
jne 0x5d9876
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test eax, eax
je 0x5d9923
mov edx, dword [ebp + 8]
mov ebx, 0x1e
mov dword [edx + 0x44], eax
lock add dword [edx + 0x40], 2
mov dword [ecx], eax
jmp 0x5d97fc
mov ecx, dword [esp + 4]
jmp 0x5d97dd
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x5d9644
mov eax, dword [esp + 0x54]
mov cl, byte [esp + 0x58]
lea esi, [esp + 0x28]
mov edx, 0x2b
mov dword [esi], eax
mov byte [esi + 4], cl
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x7f4814
push 0x7c4bb8
push esi
jmp 0x5d98d5
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 0x7c4ac8
push ebx
call fcn.006525c0
add esp, 0xc
ud2
mov ecx, 4
mov edx, 0x178
call fcn.00651860
ud2
call fcn.0065a2d0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
mov dword [esp + 0x28], eax
push 0x7f4ae8
jmp 0x5d9919
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7f4824
call fcn.006522d0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7f46f0
jmp 0x5d9919