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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x1c0
mov esi, esp
mov dword [esi + 0x198], ebp
mov dword [esi + 0x19c], esp
mov dword [esi + 0x1a8], 0xffffffff
mov dword [esi + 0x1a4], 0x704eb0
lea eax, [esi + 0x1a0]
mov edi, dword fs:[0]
mov dword [esi + 0x1a0], edi
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
lock inc dword [eax]
jle 0x58f317
movaps xmm0, xmmword [0x725fc0]
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0x100], 0
mov byte [esi + 0x104], 0
mov dword [esi + 0x108], 4
mov dword [esi + 0x10c], 0
mov dword [esi + 0x24], edx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x6c], eax
movaps xmmword [esi + 0x110], xmm0
mov byte [esi + 0x120], 1
mov dword [esi + 0x140], 1
mov dword [esi + 0x144], 1
mov byte [esi + 0x148], 0
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x58ec64
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x58f2c7
mov dword [0x919820], eax
push 0x140
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x58f2c7
mov ebx, eax
and ebx, 0xffffffc0
mov dword [ebx + 0x3c], eax
lea eax, [esi + 0x80]
add ebx, 0x40
push pe_nt_image_headers32
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x20], ebx
mov byte [esi + 0x1b], 1
mov dword [esi + 0x1a8], 7
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x24]
mov byte [esi + 0x60], al
mov dword [esi + 0x50], 1
mov dword [esi + 0x54], ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, dword [esi + 0x2c]
cmp dword [edi + 8], eax
jne 0x58ed16
lea eax, [esi + 0x50]
mov byte [esi + 0x1b], 1
push eax
call fcn.005922f0
add esp, 4
mov eax, dword [esi + 0x1c]
lock dec dword [eax]
jne 0x58ecfc
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x1a8], 0xa
call fcn.004f30b0
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x1a8], 2
call fcn.00591670
jmp 0x58ee04
mov eax, dword [esi + 0x60]
movsd xmm0, qword [esi + 0x50]
movsd xmm1, qword [esi + 0x58]
mov dword [esi + 0x90], eax
movsd qword [esi + 0x88], xmm1
movsd qword [esi + 0x80], xmm0
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x58ed5c
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x58f31b
mov dword [0x919820], eax
push 0x14
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x58f31b
mov ebx, eax
mov eax, dword [esi + 0x90]
mov dword [ebx + 0x10], eax
movsd xmm0, qword [esi + 0x80]
movsd xmm1, qword [esi + 0x88]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x58edb6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x58f339
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x58f339
mov dword [eax], ebx
mov dword [eax + 4], 0x74408c
mov dword [esi + 0x1c], eax
mov ecx, 0x919540
mov byte [esi + 0x1b], 0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x24], eax
call fcn.006fd340
mov byte [esi + 0x1b], 0
push 0
push dword [esi + 0x1c]
push eax
push dword [esi + 0x24]
call dword [sym.imp.user32.dll_PostMessageW]
test eax, eax
je 0x58f35a
xorps xmm0, xmm0
mov dword [esi + 0x58], 0x3b9aca00
mov dword [esi + 0x90], 0
movaps xmmword [esi + 0x80], xmm0
mov eax, dword [esi + 0x20]
xor edi, edi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x24], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x1c], eax
jmp 0x58ee5e
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, dword [esi + 0x20]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x24]
inc edi
add dword [esi + 0x2c], ecx
add ecx, 2
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ecx
cmp edi, 6
mov ecx, 6
mov eax, ebx
cmovb ecx, edi
shr eax, 1
mov edx, eax
and edx, 0x1f
cmp edx, 0x1f
mov dword [esi + 0x3c], edx
jne 0x58eea0
cmp edi, 6
ja 0x58ee40
mov edx, dword [esi + 0x20]
test edi, edi
je 0x58ee49
mov eax, dword [esi + 0x2c]
nop dword [eax]
pause
dec eax
jne 0x58ee90
jmp 0x58ee49
lea edx, [ebx + 2]
mov dword [esi + 0x68], ebx
test bl, 1
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0x38], edx
jne 0x58ef10
mfence
mov edx, dword [esi + 0x20]
mov edx, dword [edx + 0x40]
mov ebx, edx
shr ebx, 1
cmp eax, ebx
je 0x58ef50
xor edx, dword [esi + 0x68]
xor eax, eax
mov ebx, dword [esi + 0x1c]
cmp edx, 0x40
mov edx, dword [esi + 0x20]
setae al
or dword [esi + 0x38], eax
test ebx, ebx
jne 0x58ef17
cmp edi, 6
ja 0x58ee40
mov edx, dword [esi + 0x20]
test edi, edi
je 0x58ee49
mov eax, dword [esi + 0x2c]
nop word cs:[eax + eax]
nop
pause
dec eax
jne 0x58ef00
jmp 0x58ee49
mov edx, dword [esi + 0x20]
test ebx, ebx
je 0x58eede
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x38]
lock cmpxchg dword [edx], ebx
je 0x58f0a6
cmp edi, 6
mov eax, 6
cmovb eax, edi
test eax, eax
je 0x58ee49
imul ecx, ecx
nop dword [eax]
pause
dec ecx
jne 0x58ef40
jmp 0x58ee49
test dl, 1
jne 0x58f2e5
mov eax, dword [esi + 0x58]
cmp eax, 0x3b9aca00
je 0x58efcb
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x58f3a2
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x1a8], 2
call fcn.006b86a0
cmp eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x2c]
mov edi, edx
sbb edi, ebx
mov edi, dword [esi + 0x24]
jb 0x58efcb
xor eax, dword [esi + 0x1c]
xor edx, ebx
or edx, eax
jne 0x58f2e5
cmp ecx, edi
jae 0x58f2e5
lea eax, [esi + 0x80]
mov dword [esi + 0x1a8], 2
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x48], eax
call fcn.006bc420
test eax, eax
je 0x58f04d
mov edx, dword [eax]
mov dword [eax], 0
test edx, edx
je 0x58f06e
lea ecx, [esi + 0x40]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], edx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [esi + 0x1a8], 4
mov dword [esi + 0x24], edx
call fcn.0058a100
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
mov ecx, dword [eax]
mov dword [eax], edx
test ecx, ecx
je 0x58ee1f
lock dec dword [ecx]
jne 0x58ee1f
call fcn.00592120
jmp 0x58ee1f
call fcn.007222b0
lea ecx, [esi + 0x40]
mov edx, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x1a8], 3
mov dword [esi + 0x1c], eax
call fcn.0058a100
jmp 0x58f08d
call fcn.007222b0
lea ecx, [esi + 0x40]
mov edx, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x1a8], 5
mov dword [esi + 0x1c], eax
call fcn.0058a100
mov eax, dword [esi + 0x1c]
lock dec dword [eax]
jne 0x58ee1f
mov ecx, dword [esi + 0x30]
call fcn.00592120
jmp 0x58ee1f
mov eax, dword [esi + 0x3c]
cmp eax, 0x1e
jne 0x58f0e3
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x1f0]
test eax, eax
je 0x58f284
mov edi, dword [esi + 0x38]
mov ecx, dword [eax + 0x1f0]
xor edx, edx
and edi, 0xfffffffe
test ecx, ecx
setne dl
lea ecx, [edi + edx + 2]
mov edi, dword [esi + 0x20]
mov dword [edi + 4], eax
mov eax, 0x1e
mov dword [edi], ecx
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x3c]
shl eax, 4
mov ecx, dword [edx + eax + 0xc]
lea edi, [edx + eax]
lea eax, [edx + eax + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x24], eax
test cl, 1
jne 0x58f157
mov ebx, 1
xor ecx, ecx
xor edi, edi
jmp 0x58f13b
mov dword [esi + 0x2c], ecx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x24]
add ecx, ebx
inc edi
add ebx, 2
mov eax, dword [eax]
test al, 1
jne 0x58f157
cmp edi, 7
jae 0x58f120
test edi, edi
je 0x58f12c
mov eax, ecx
nop word cs:[eax + eax]
pause
dec eax
jne 0x58f150
jmp 0x58f12c
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 8]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x3c]
movsd xmm0, qword [ecx]
lea ecx, [eax + 1]
cmp ecx, 0x1f
movsd qword [esi + 0x40], xmm0
jne 0x58f1b1
mov ebx, dword [esi + 0x20]
xor ecx, ecx
jmp 0x58f186
inc ecx
cmp ecx, 0x1e
je 0x58f1d8
mov edx, dword [esi + 0x1c]
mov eax, ecx
shl eax, 4
mov edx, dword [edx + eax + 0xc]
test dl, 2
jne 0x58f180
mov edx, dword [esi + 0x1c]
lea edx, [edx + eax + 0xc]
mov eax, dword [edx]
mov edi, eax
or edi, 4
lock cmpxchg dword [edx], edi
jne 0x58f1a0
test al, 2
jne 0x58f180
jmp 0x58f1e9
mov edi, dword [esi + 0x24]
mov eax, dword [edi]
nop word cs:[eax + eax]
mov edx, eax
or edx, 2
lock cmpxchg dword [edi], edx
jne 0x58f1c0
mov ebx, dword [esi + 0x20]
test al, 4
je 0x58f1e9
cmp dword [esi + 0x3c], 0x1c
jbe 0x58f256
push dword [esi + 0x1c]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
movsd xmm0, qword [esi + 0x40]
movsd qword [esi + 0x74], xmm0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x58f219
cmp dword [esi + 0x78], 0
je 0x58f219
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi + 0x1a8], 0
mov ecx, 1
mov edx, ebx
mov byte [esi + 0x2b], 0
mov dword [esi + 0x1a8], 0
call fcn.00591c90
mov eax, dword [esi + 0x1a0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
inc ecx
cmp ecx, 0x1e
je 0x58f1d8
mov edx, dword [esi + 0x1c]
mov eax, ecx
shl eax, 4
mov edx, dword [edx + eax + 0xc]
test dl, 2
jne 0x58f250
mov edx, dword [esi + 0x1c]
lea edx, [edx + eax + 0xc]
mov eax, dword [edx]
mov edi, eax
or edi, 4
lock cmpxchg dword [edx], edi
jne 0x58f270
test al, 2
jne 0x58f250
jmp 0x58f1e9
mov edi, 1
xor ecx, ecx
xor ebx, ebx
jmp 0x58f2b3
mov dword [esi + 0x24], ecx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
add ecx, edi
inc ebx
add edi, 2
mov eax, dword [eax + 0x1f0]
test eax, eax
jne 0x58f0bf
cmp ebx, 7
jae 0x58f290
test ebx, ebx
je 0x58f29c
mov eax, ecx
nop
pause
dec eax
jne 0x58f2c0
jmp 0x58f29c
mov ecx, 0x40
mov edx, pe_nt_image_headers32
mov dword [esi + 0x1a8], 1
call fcn.00709d20
jmp 0x58f3db
mov dword [esi + 0x1a8], 2
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x7439b4
push 0x7439a4
lea eax, [esi + 0x80]
push eax
call fcn.0070a360
add esp, 0xc
jmp 0x58f3db
ud2
mov ecx, 4
mov edx, 0x14
mov dword [esi + 0x1a8], 9
call fcn.00709d20
jmp 0x58f3db
mov ecx, 4
mov edx, 8
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x1a8], 8
call fcn.00709d20
jmp 0x58f3db
lea ecx, [esi + 0x80]
mov edx, 0x8f7c84
mov dword [esi + 0x80], 0x8f7c7c
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov dword [esi + 0x88], str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs
mov dword [esi + 0x8c], 0
mov byte [esi + 0x1b], 0
call fcn.00709f70
jmp 0x58f3db
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x1a8], 6
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fc8
push 0x8c7c18
lea eax, [esi + 0x40]
push eax
call fcn.0070a360
add esp, 0xc
ud2