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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, esp
mov dword [esi + 0x130], ebp
lea eax, [esi + 0x138]
mov dword [esi + 0x14], ecx
mov dword [esi + 4], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x587790
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov edi, dword [edx + 0xa8]
lea edx, [edi - 2]
cmp edx, 3
push 3
pop ecx
mov eax, ecx
cmovb eax, edx
test eax, eax
mov eax, edx
call 0x582271
pop edx
jne 0x58253d
lea ebx, [esi + 0x38]
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edx
push 0x28
mov edi, dword [esi + 4]
push edi
push ebx
call fcn.0058a110
add esp, 0xc
and dword [edi + 4], 0
and dword [edi], 0
lea ecx, [esi + 0xa0]
mov edx, ebx
push 0x6532ec
call fcn.00582924
pop eax
mov ecx, dword [edi + 0x2c]
cmp dword [edi + 0x28], 2
lea edx, [edi + 0x90]
lea eax, [ecx + 0x68]
cmove edx, eax
lea eax, [edi + 0x28]
cmovne ecx, eax
movzx eax, word [edx]
mov edi, dword [ecx + 0x6c]
test eax, eax
mov dword [esi + 0x1c], edi
je 0x58232a
cmp eax, 1
jne 0x582889
xor edx, edx
mov ecx, 0x8000
inc edx
call fcn.005720fb
mov ebx, edx
cmp eax, 0x8001
jb 0x582384
mov ecx, ebx
mov edx, eax
push 0x8000
push 1
mov edi, eax
call fcn.00405270
pop ecx
pop edx
test eax, eax
mov dword [esi + 0x10], eax
jne 0x582387
and dword [esi + 0x140], 0
xor ecx, ecx
mov edx, 0x8000
mov dword [esi + 0x18], edi
mov dword [esi + 4], ebx
inc ecx
call fcn.00599e40
ud2
mov ecx, ebx
call fcn.00451222
movsd xmm1, qword [esi + 0xb0]
movsd xmm0, qword [esi + 0xb8]
movsd xmm2, qword [esi + 0xa0]
lea eax, [esi + 0xfc]
movsd qword [esi + 0x58], xmm1
movsd xmm1, qword [esi + 0xa8]
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x48], xmm2
movsd qword [esi + 0x50], xmm1
push 0x30
push ebx
push eax
call fcn.0058a110
add esp, 0xc
mov eax, edi
push 4
pop edi
mov dword [esi + 0x10], eax
jmp 0x5824a1
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0xc0]
mov dword [esi + 0x140], 1
call fcn.0045474f
movsd xmm1, qword [esi + 0xb0]
movsd xmm0, qword [esi + 0xb8]
movsd xmm3, qword [esi + 0xa0]
movsd xmm2, qword [esi + 0xc0]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xf8]
mov dword [esi + 0x140], 2
movsd qword [esi + 0x50], xmm1
movsd xmm1, qword [esi + 0xa8]
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x40], xmm3
movsd qword [esi + 0x48], xmm1
movsd xmm1, qword [esi + 0xc8]
movsd qword [esi + 0x68], xmm2
movsd qword [esi + 0x70], xmm1
movsd xmm1, qword [esi + 0xd0]
movsd qword [esi + 0x78], xmm1
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x8000
and dword [esi + 0x60], 0
and dword [esi + 0x64], 0
call fcn.00451222
lea ebx, [esi + 0xcc]
push 0x28
lea eax, [esi + 0x38]
push eax
push ebx
call fcn.0058a110
add esp, 0xc
movsd xmm1, qword [esi + 0x6d]
movsd xmm2, qword [esi + 0x75]
mov eax, dword [esi + 0x7c]
movsd xmm0, qword [esi + 0x65]
mov edi, dword [esi + 0xf8]
movsd qword [esi + 0x88], xmm1
movsd qword [esi + 0x90], xmm2
mov dword [esi + 0x97], eax
movsd xmm1, qword [esi + 0xfc]
mov eax, dword [esi + 0x104]
movsd qword [esi + 0x80], xmm0
movsd qword [ebx - 0xc], xmm1
mov dword [ebx - 4], eax
push 0x34
lea eax, [esi + 0xc0]
push eax
lea eax, [esi + 0xf8]
push eax
call fcn.0058a110
add esp, 0xc
mov dword [esi + 0x10], 0
cmp dword [esi + 0xc], 1
ja 0x5824b5
mov eax, dword [esi + 4]
lea ecx, [eax + 0xb8]
call fcn.00582964
mov ebx, dword [esi + 4]
lea ecx, [esi + 0xf8]
lea eax, [ebx + 0xac]
mov dword [ebx + 0xa8], edi
push 0x34
push ecx
push eax
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 0x10]
movsd xmm0, qword [esi + 0x90]
mov ecx, dword [esi + 0x97]
movsd xmm1, qword [esi + 0x88]
mov dword [ebx + 0xe0], eax
xor eax, eax
mov byte [ebx + 0xe4], al
movsd qword [ebx + 0xf5], xmm0
mov dword [ebx + 0xfc], ecx
movsd xmm0, qword [esi + 0x80]
mov ecx, dword [esi + 0x1c]
movsd qword [ebx + 0xed], xmm1
movsd qword [ebx + 0xe5], xmm0
mov dword [ebx + 0x100], ecx
mov byte [ebx + 0x104], al
mov eax, edi
add eax, 0xfffffffe
push 3
pop ecx
mov edx, dword [esi + 0x18]
cmp eax, 3
cmovb ecx, eax
mov eax, dword [ebp + 0xc]
add edx, dword [ecx*4 + 0x582914]
jmp edx
lea ecx, [esi + 0x38]
mov edx, 0x65324c
mov dword [ecx], str.Compression_method_not_supported_2e
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
and dword [ecx + 0xc], 0
call fcn.0059a150
push ebp
sub esp, 0x14
lea esi, [ebp - 0x144]
mov ebp, dword [esi + 0x130]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 4]
call fcn.004d351c
add esp, 0x14
pop ebp
ret