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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x579550
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x80]
xor edx, edx
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov dword fs:[0], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 8
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 4
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
nop word cs:[eax + eax]
nop dword [eax + eax]
test cl, 1
jne 0x52354a
cmp edx, 0x7ffffffe
ja 0x52365f
lea eax, [edx + 1]
lea ecx, [esi + 0x18]
mov byte [esi + 7], 1
mov dword [esi + 0x88], 0
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
call fcn.004ca140
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov cl, 1
jmp 0x523510
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax]
test eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
js 0x5238c0
je 0x5235b8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
lea ebx, [eax*8]
xor eax, eax
nop
cmp dword [esi + 0x14], eax
je 0x52386c
mov ecx, dword [edx + eax*8]
mov edi, edx
mov edx, dword [edx + eax*8 + 4]
mov dword [esi + 0xc], edx
add edx, dword [esi + 8]
jb 0x523666
cmp edx, 0x7ffffffe
ja 0x523666
add ecx, dword [esi + 8]
mov dword [edi + eax*8 + 4], edx
cmp ecx, 0x7fffffff
jae 0x523886
mov dword [edi + eax*8], ecx
inc eax
mov edx, edi
add ebx, 0xfffffff8
jne 0x523570
movsd xmm2, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x28]
movsd xmm0, qword [esi + 0x38]
xor ecx, ecx
mov edx, 0x30
movsd qword [esi + 0x68], xmm2
movsd qword [esi + 0x60], xmm1
movsd xmm2, qword [esi + 0x18]
movsd xmm1, qword [esi + 0x20]
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x58], xmm1
movsd qword [esi + 0x50], xmm2
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 1
movzx eax, byte [0x5fd2ec]
call fcn.0056a9f0
test eax, eax
je 0x5238da
movsd xmm0, qword [esi + 0x70]
mov ecx, dword [esi + 0x10]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [esi + 0x68]
movsd qword [eax + 0x20], xmm0
movsd xmm0, qword [esi + 0x60]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esi + 0x58]
movsd qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x48]
movsd xmm1, qword [esi + 0x50]
movsd qword [eax + 8], xmm1
movq qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx], 0x80000004
jmp 0x523858
mov ecx, 0x80000000
jmp 0x523673
mov edx, dword [esi + 0xc]
sub edx, ecx
mov ecx, 0x80000001
shr edx, 1
inc edx
mov edi, dword [esi + 0x10]
cmp dword [esi + 0x18], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], 0
je 0x52369c
push dword [esi + 0x1c]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
test eax, eax
mov dword [esi + 0x10], eax
je 0x52379e
xor eax, eax
mov dword [esi + 0x40], edi
jmp 0x5236cd
mov eax, dword [esi + 0x14]
inc eax
cmp eax, dword [esi + 0x10]
je 0x52379e
mov dword [esi + 0x14], eax
shl eax, 5
mov ecx, dword [edi + eax + 4]
test ecx, ecx
je 0x5236c0
add eax, edi
mov edx, dword [eax + 0xc]
mov ebx, eax
test edx, edx
je 0x523769
mov dword [esi + 0x44], ebx
mov ebx, dword [ebx]
movdqa xmm0, xmmword [ebx]
lea edi, [ebx + 0x10]
pmovmskb eax, xmm0
not eax
jmp 0x52370b
mov ecx, dword [esi + 0xc]
lea eax, [ecx - 1]
and eax, ecx
dec edx
je 0x523760
test ax, ax
jne 0x52372a
movdqa xmm0, xmmword [edi]
add ebx, 0xffffff40
add edi, 0x10
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x523710
not eax
mov dword [esi + 0xc], eax
tzcnt eax, eax
neg eax
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*4 - 0xc]
lock dec dword [ecx]
jne 0x523700
lea eax, [ebx + eax*4]
mov dword [esi + 8], edx
mov ecx, dword [eax - 0xc]
mov edx, dword [eax - 8]
call fcn.004c2b10
mov edx, dword [esi + 8]
jmp 0x523700
mov ebx, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
mov ecx, dword [ebx + 4]
lea eax, [ecx + 1]
mov edx, 0xc
mul edx
add eax, 0xf
and eax, 0xfffffff0
add ecx, eax
cmp ecx, 0xffffffef
je 0x5236c0
mov ecx, dword [ebx]
sub ecx, eax
push dword [ecx - 4]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x5236c0
cmp dword [esi + 0x24], 0
je 0x5237b3
push edi
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [esi + 0x10], eax
je 0x523841
mov eax, dword [esi + 0x34]
mov dword [esi + 0xc], eax
xor eax, eax
jmp 0x5237d9
mov eax, dword [esi + 0x14]
inc eax
cmp eax, dword [esi + 0x10]
je 0x523841
mov edx, dword [esi + 0xc]
lea ecx, [eax + eax*2]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov ebx, dword [edx + ecx*4 + 8]
test ebx, ebx
je 0x523820
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edi, dword [eax + ecx*4 + 4]
jmp 0x523806
add edi, 8
dec ebx
je 0x523820
mov eax, dword [edi]
test eax, eax
je 0x523800
lock dec dword [eax]
jne 0x523800
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.004c2b10
jmp 0x523800
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
je 0x5237d0
push dword [eax + 4]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x5237d0
cmp dword [esi + 0x30], 0
je 0x523858
push dword [esi + 0x34]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x59f518
mov byte [esi + 7], 1
mov dword [esi + 0x88], 0
call fcn.0057fb10
jmp 0x5238f3
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
mov byte [esi + 7], 1
mov dword [esi + 0x88], 0
lea eax, [esi + 0x48]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x59dd30
push 0x59aa4c
push eax
call fcn.0057fa90
add esp, 0xc
jmp 0x5238f3
mov ecx, 0x59dd20
mov byte [esi + 7], 1
mov dword [esi + 0x88], 0
call fcn.0057fb10
jmp 0x5238f3
mov ecx, 4
mov edx, 0x30
mov dword [esi + 0x88], 1
call fcn.0057f230
ud2