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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
mov esi, esp
mov dword [esi + 0x1a8], ebp
call 0x510d2c
pop eax
mov dword [esi + 0x1ac], esp
mov dword [esi + 0x1b8], 0xffffffff
mov dword [esi + 0x1b4], 0x7042b0
mov dword [esi + 0xf8], ecx
mov ecx, 8
mov edi, edx
lea ebx, [edx + 8]
mov dword [esi + 0xc8], eax
mov eax, dword fs:[0]
mov dword [esi + 0x1b0], eax
lea eax, [esi + 0x1b0]
mov dword fs:[0], eax
xor eax, eax
lock cmpxchg dword [edx + 8], ecx
jne 0x511691
cmp dword [edi + 0xfc], 0
mov dword [esi + 0xfc], ebx
je 0x511b45
mov eax, dword [ebp + 8]
mov ecx, 0xf061a8ca
mov edx, dword [edi + 0xf4]
pcmpeqd xmm1, xmm1
mov dword [esi + 0x100], 0
xor ecx, dword [eax + 4]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
mov ecx, 0xa98d695b
xor ecx, dword [eax]
mov eax, ecx
mov dword [esi + 0xd0], ecx
shr eax, 0x19
movd xmm0, eax
mov eax, dword [edi + 0xf0]
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea edi, [eax - 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0xcc], edi
and ecx, edx
movdqa xmm3, xmm0
movdqu xmm2, xmmword [eax + ecx]
pcmpeqb xmm3, xmm2
pmovmskb edx, xmm3
nop word cs:[eax + eax]
nop dword [eax]
test dx, dx
je 0x510e50
tzcnt eax, edx
mov ebx, dword [esi + 0xcc]
lea edi, [edx - 1]
add eax, ecx
and edi, edx
and eax, dword [esi + 0x1c]
mov edx, eax
shl edx, 5
sub ebx, edx
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
xor edx, dword [esi + 0x20]
xor ebx, dword [esi + 0xd0]
or ebx, edx
mov edx, edi
jne 0x510e10
jmp 0x510e7e
pcmpeqb xmm2, xmm1
pmovmskb eax, xmm2
test eax, eax
jne 0x511b45
mov eax, dword [esi + 0x100]
mov edx, dword [esi + 0x1c]
lea ecx, [ecx + eax + 0x10]
add eax, 0x10
mov dword [esi + 0x100], eax
mov eax, dword [esi + 0x28]
jmp 0x510df0
mov edx, dword [esi + 0x28]
neg eax
shl eax, 5
cmp dword [edx + eax - 0x18], 0
lea ecx, [edx + eax]
mov dword [esi + 0x1b8], 0
je 0x5115f5
mov edx, dword [ecx - 8]
mov eax, dword [ecx - 4]
lea edi, [esi + 0xd4]
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xdc], 0
mov dword [esi + 0xd4], 1
mov dword [esi + 0xd8], 0x80
lea ecx, [esi + 0x2c]
mov dword [esi + 0xcc], edx
add edx, 8
mov dword [esi + 0x150], edx
mov dword [esi + 0x154], eax
push edi
push eax
call fcn.00692d10
add esp, 8
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x511677
mov eax, dword [esi + 0x54]
movq xmm1, qword [esi + 0x30]
mov ecx, dword [esi + 0x38]
movdqu xmm0, xmmword [esi + 0x3c]
movq xmm2, qword [esi + 0x4c]
test al, al
movq qword [esi + 0x90], xmm1
mov dword [esi + 0x98], ecx
movdqu xmmword [esi + 0x9c], xmm0
movq qword [esi + 0xac], xmm2
mov dword [esi + 0xb4], eax
jne 0x510f5d
lea edx, [esi + 0x98]
lea ecx, [esi + 0x2c]
push 5
push 0x7416a4
call fcn.00690910
add esp, 8
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x5116b0
lea edx, [esi + 0x98]
lea ecx, [esi + 0x2c]
call fcn.0068dc50
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x5119e0
cmp byte [esi + 0xb4], 0
mov byte [esi + 0x27], 1
je 0x5116c6
mov byte [esi + 0xb4], 0
cmp dword [esi + 0x90], 0
je 0x510fad
mov eax, dword [esi + 0x94]
test eax, eax
je 0x511740
dec eax
mov dword [esi + 0x94], eax
mov eax, str.desired_size
lea edi, [esi + 0x90]
mov dword [esi + 0x78], 2
mov dword [esi + 0x10], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
movd xmm0, eax
mov dword [esi + 0xd4], edi
mov word [esi + 0xd8], 0x129
mov dword [esi + 0xc], eax
movdqa xmmword [esi + 0x100], xmm0
lea edx, [edi + 8]
lea ecx, [esi + 0x2c]
call fcn.0068dc50
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x51174a
cmp dword [edi + 0xc], 0
je 0x511766
mov eax, dword [edi + 8]
test eax, eax
je 0x511766
movzx ebx, byte [eax]
mov bh, byte [esi + 0xd9]
lea ecx, [esi + 0x2c]
mov dword [esi + 0x2c], 3
call fcn.00575e70
movzx eax, byte [esi + 0xd8]
test bh, bh
je 0x511798
mov edi, dword [esi + 0x28]
movzx ecx, byte [esi + 0x1c]
cmp bl, al
setne byte [esi + 0x73]
je 0x5117b0
mov edx, dword [esi + 0xd4]
cmp al, 0x29
mov eax, dword [edx]
mov dword [esi + 0x20], edx
jne 0x51113c
test eax, eax
je 0x511084
mov eax, dword [edx + 4]
test eax, eax
je 0x511883
dec eax
mov dword [edx + 4], eax
lea ecx, [esi + 0x2c]
call fcn.0051e8a0
mov eax, dword [esi + 0x2c]
movaps xmm0, xmmword [esi + 0x190]
mov ecx, dword [esi + 0x128]
mov ebx, dword [esi + 0x124]
cmp eax, 0x2c
mov dword [esi + 0x74], eax
je 0x5110d0
movzx ecx, byte [esi + 0x33]
movzx edx, word [esi + 0x31]
mov edi, dword [esi + 0x4c]
mov ebx, dword [esi + 0x38]
movups xmm0, xmmword [esi + 0x3c]
shl ecx, 0x10
mov dword [esi + 0x114], edi
or edx, ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x11c], edx
movzx eax, byte [esi + 0x30]
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x11c]
mov dword [esi + 0x128], ecx
mov dword [esi + 0x8c], ecx
mov ecx, dword [esi + 0x114]
movaps xmmword [esi + 0x190], xmm0
movaps xmmword [esi + 0x160], xmm0
movdqa xmm1, xmmword [esi + 0x100]
movd xmm0, dword [0x726434]
mov dword [esi + 0x124], ebx
mov dword [esi + 0x88], ebx
mov byte [esi + 0x1c], al
mov dword [esi + 0x84], edi
cmp dword [edx], 0
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x74]
mov dword [esi + 0x80], ecx
jne 0x5111fa
jmp 0x51120c
test eax, eax
je 0x51114f
mov eax, dword [edx + 4]
test eax, eax
je 0x511883
dec eax
mov dword [edx + 4], eax
lea ecx, [esi + 0x2c]
call fcn.0051e8a0
mov eax, dword [esi + 0x2c]
movaps xmm0, xmmword [esi + 0x180]
mov edx, dword [esi + 0x12c]
mov ecx, dword [esi + 0x120]
cmp eax, 0x2c
je 0x511198
movzx ecx, byte [esi + 0x33]
mov edi, dword [esi + 0x38]
movzx edx, word [esi + 0x31]
movups xmm0, xmmword [esi + 0x3c]
shl ecx, 0x10
mov dword [esi + 0x118], edi
mov edi, dword [esi + 0x4c]
or edx, ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x110], edi
mov edi, dword [esi + 0x20]
movzx ebx, byte [esi + 0x30]
mov dword [esi + 0x12c], edx
mov dword [esi + 0x84], edx
movaps xmmword [esi + 0x180], xmm0
movaps xmmword [esi + 0x160], xmm0
movdqa xmm1, xmmword [esi + 0x100]
movd xmm0, dword [0x726434]
mov dword [esi + 0x120], ecx
mov dword [esi + 0x8c], ecx
cmp dword [edi], 0
mov edx, edi
mov edi, dword [esi + 0x110]
mov byte [esi + 0x1c], bl
mov ebx, dword [esi + 0x118]
mov dword [esi + 0x80], edi
mov edi, dword [esi + 0x28]
mov dword [esi + 0x88], ebx
je 0x51120c
mov ecx, dword [edx + 4]
mov edx, 0xffffffff
inc ecx
cmove ecx, edx
mov edx, dword [esi + 0x20]
mov dword [edx + 4], ecx
cmp eax, 0x2c
jne 0x5117e7
cmp byte [esi + 0x1c], 4
ja 0x51136c
movzx eax, byte [esi + 0x1c]
mov eax, dword [eax*4 + 0x511e40]
add eax, dword [esi + 0xc8]
jmp eax
lea ecx, [esi + 0x2c]
lea edx, [esi + 0xd4]
call fcn.00482a40
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x511854
mov edi, dword [esi + 0xd4]
jmp 0x510ff8
mov edx, dword [ecx - 0x10]
mov eax, dword [ecx - 0xc]
lea ecx, [esi + 0x170]
mov dword [esi + 0x1c], edx
push edx
push ecx
call dword [eax + 0xc]
add esp, 8
mov eax, dword [esi + 0x17c]
mov ecx, dword [esi + 0x178]
mov edi, dword [esi + 0x170]
mov edx, dword [esi + 0x174]
xor edi, 0x8a6f176b
xor ecx, 0xb6ed7318
xor edx, 0x73af79cf
xor eax, 0x6604364f
or ecx, edi
or eax, edx
or eax, ecx
jne 0x511b45
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0xf8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
movsd xmm0, qword [edx + 0x10]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
jmp 0x511b51
mov edi, dword [esi + 0x30]
movq xmm0, qword [esi + 0x34]
movdqu xmm2, xmmword [esi + 0x3c]
mov ecx, dword [esi + 0x4c]
movq xmm1, qword [esi + 0x50]
jmp 0x511a05
mov ecx, ebx
call fcn.007188f0
cmp dword [edi + 0xfc], 0
mov dword [esi + 0xfc], ebx
jne 0x510d95
jmp 0x511b45
movzx ecx, byte [esi + 0x33]
movzx edx, word [esi + 0x31]
movzx ebx, byte [esi + 0x30]
shl ecx, 0x10
or edx, ecx
jmp 0x5119e8
mov ecx, dword [esi + 0x9c]
mov edx, 0x7416a4
mov eax, 5
mov ebx, 0x7416a4
movd xmm0, eax
shr edx, 8
mov eax, 0x15
test ecx, ecx
je 0x51173b
mov edi, dword [esi + 0x98]
cmp byte [edi], 0x28
jne 0x51173b
mov dword [esi + 0x1c], ecx
movzx ecx, byte [edi]
mov eax, dword [esi + 0xa4]
mov ebx, dword [esi + 0xa8]
mov dword [esi + 0x2c], 3
mov byte [esi + 0x20], cl
lea ecx, [esi + 0x2c]
mov dword [esi + 0x28], eax
call fcn.00575e70
cmp byte [esi + 0x20], 0xa
jne 0x511819
mov eax, dword [esi + 0x28]
mov ebx, 1
inc eax
mov dword [esi + 0xa4], eax
jmp 0x51181a
jmp 0x5119f5
mov eax, 0x2b
jmp 0x5119f5
movzx edi, byte [esi + 0x33]
movzx edx, word [esi + 0x31]
movzx ecx, byte [esi + 0x30]
shl edi, 0x10
mov dword [esi + 0xc], ecx
or edx, edi
mov edi, dword [esi + 0x34]
jmp 0x511862
movzx eax, byte [esi + 0x30]
movzx edx, word [esi + 0x31]
mov edi, dword [esi + 0x34]
movdqu xmm1, xmmword [esi + 0x3c]
mov dword [esi + 0xc], eax
movzx eax, byte [esi + 0x33]
shl eax, 0x10
or edx, eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x18], eax
mov eax, 3
jmp 0x5118ed
mov edi, dword [esi + 0x28]
cmp bl, al
je 0x5117b0
movzx ecx, byte [esi + 0x73]
mov dword [esi + 0xc], ecx
mov eax, 9
jmp 0x5118ed
cmp dword [esi + 0xc4], 0
mov eax, 0x27
je 0x511875
cmp dword [esi + 0xc0], 0
je 0x5118d0
mov eax, dword [esi + 0x78]
movdqa xmm2, xmmword [esi + 0x140]
xor ebx, ebx
cmp eax, 2
cmovne ebx, eax
jmp 0x511964
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov edi, dword [esi + 0x8c]
movdqa xmm1, xmmword [esi + 0x160]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x18], ecx
movzx ecx, byte [esi + 0x1c]
mov dword [esi + 0xc], ecx
jmp 0x5118ed
inc ebx
mov eax, dword [esi + 0x1c]
inc edi
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x98], edi
dec eax
mov dword [esi + 0x9c], eax
movzx eax, byte [esi + 0xb4]
mov byte [esi + 0x27], al
mov byte [esi + 0xb4], 0
cmp dword [esi + 0x90], 0
jne 0x510f98
jmp 0x510fad
mov edx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov ecx, edx
mov dword [esi + 0xc], edx
shr edx, 8
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x10], ecx
movdqu xmm1, xmmword [esi + 0x3c]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x18], ecx
jmp 0x5118ed
movaps xmm1, xmmword [0x726440]
mov ecx, str.desired_size
jmp 0x5118dc
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov edi, dword [esi + 0x8c]
movdqa xmm1, xmmword [esi + 0x160]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x18], eax
mov eax, ecx
mov dword [esi + 0xc], eax
mov eax, 0x2b
jmp 0x5118ed
movaps xmm1, xmmword [0x726450]
mov ecx, str.last_content_size
movd xmm0, ecx
movss xmm1, xmm0
xor edx, edx
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x2c], eax
movzx eax, byte [esi + 0xc]
mov ecx, dword [esi + 0x10]
shl edx, 8
or eax, edx
lea edx, [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ecx
xor ecx, ecx
cmp byte [esi + 0x27], 0
mov edi, 0x7416a4
movdqu xmmword [esi + 0x3c], xmm1
mov dword [esi + 0x4c], ebx
cmovne edi, ecx
lea ecx, [esi + 0xd4]
push 5
push edi
call fcn.006934f0
add esp, 8
mov eax, dword [esi + 0xd4]
mov ebx, dword [esi + 0xd8]
movq xmm0, qword [esi + 0xdc]
movdqu xmm2, xmmword [esi + 0xe4]
cmp eax, 0x2c
jne 0x511b89
movd edi, xmm0
shufps xmm0, xmm0, 0x55
movss dword [esi + 0x10], xmm0
cmp dword [esi + 0x90], 0
movdqa xmmword [esi + 0x140], xmm2
je 0x51198a
mov eax, dword [esi + 0x94]
mov ecx, 0xffffffff
inc eax
cmovne ecx, eax
mov dword [esi + 0x94], ecx
lea ecx, [esi + 0x2c]
lea edx, [esi + 0x98]
call fcn.0068dc50
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x5119e0
cmp byte [esi + 0x27], 0
je 0x511b99
lea edx, [esi + 0x98]
lea ecx, [esi + 0x2c]
call fcn.0068dc50
mov eax, dword [esi + 0x2c]
cmp eax, 0x2c
jne 0x511c0f
cmp dword [esi + 0x9c], 0
je 0x511c2c
movq xmm1, qword [esi + 0xa4]
mov eax, 0x22
jmp 0x511a05
mov ebx, dword [esi + 0x30]
mov edx, ebx
shr edx, 8
movq xmm0, qword [esi + 0x34]
movdqu xmm2, xmmword [esi + 0x3c]
mov ecx, dword [esi + 0x4c]
movq xmm1, qword [esi + 0xa4]
shl edx, 8
movzx edi, bl
or edi, edx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edi
movq qword [esi + 0x98], xmm0
movdqu xmmword [esi + 0xa0], xmm2
mov dword [esi + 0xb0], ecx
movq qword [esi + 0xb4], xmm1
mov eax, dword [0x919aa8]
cmp eax, 1
jbe 0x511b3a
lea eax, [esi + 0x158]
mov dword [esi + 0x158], 0x741619
mov dword [esi + 0x15c], 0x1f
mov ecx, str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs
lea edx, [esi + 0xd4]
mov dword [esi + 0xd4], eax
lea eax, [esi + 0x90]
mov dword [esi + 0xd8], 0x5cbf90
mov dword [esi + 0xdc], eax
lea eax, [esi + 0x150]
mov dword [esi + 0xe0], 0x691770
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], 0x693810
mov eax, dword [0x91975c]
mov dword [esi + 0x58], 0x742d48
mov dword [esi + 0x5c], 3
mov dword [esi + 0x60], edx
lea edx, [esi + 0x2c]
mov dword [esi + 0x64], 3
mov dword [esi + 0x68], 0
mov dword [esi + 0x4c], 2
mov dword [esi + 0x50], 0x742dad
mov dword [esi + 0x54], 0x17
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0x17
mov dword [esi + 0x38], 0x742dad
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0x6d
mov dword [esi + 0x44], 0x742dc4
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], 0x122
mov dword [esi + 0x1b8], 1
cmp eax, 2
mov eax, 0x8b82b8
cmove eax, dword [0x9192e0]
cmove ecx, dword [str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs]
push edx
push ecx
call dword [eax + 0x14]
add esp, 8
lea ecx, [esi + 0x90]
call fcn.00575e70
mov eax, dword [esi + 0xf8]
mov dword [eax], 2
mov ecx, dword [esi + 0xfc]
xor edx, edx
mov eax, 8
lock cmpxchg dword [ecx], edx
jne 0x511b78
mov eax, dword [esi + 0x1b0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x1b8], 0xffffffff
call fcn.00719150
jmp 0x511b64
mov ecx, dword [esi + 0xf4]
mov edx, ebx
shr edx, 8
jmp 0x5119f5
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x9c]
mov eax, 0x16
test edi, edi
je 0x511745
mov ecx, dword [esi + 0x98]
cmp byte [ecx], 0x29
jne 0x511745
mov dword [esi + 0x1c], ecx
movzx ecx, byte [ecx]
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0xa8]
mov dword [esi + 0x2c], 3
mov byte [esi + 0x20], cl
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc8], eax
mov dword [esi + 0x100], edx
call fcn.00575e70
cmp byte [esi + 0x20], 0xa
jne 0x511d39
mov eax, dword [esi + 0xc8]
inc eax
mov dword [esi + 0xa4], eax
mov eax, 1
jmp 0x511d40
mov edi, dword [esi + 0x30]
movq xmm0, qword [esi + 0x34]
movdqu xmm2, xmmword [esi + 0x3c]
mov ecx, dword [esi + 0x4c]
movq xmm1, qword [esi + 0xa4]
jmp 0x511a05
cmp ebx, 2
je 0x511b45
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x511c58
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x511de7
mov dword [0x919820], eax
push 0x1c
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x511de7
mov dword [eax], ebx
mov dword [eax + 4], edi
mov edi, dword [esi + 0x10]
movdqa xmm0, xmmword [esi + 0x140]
mov ecx, dword [esi + 0xcc]
mov edx, eax
mov dword [edx + 8], edi
movdqu xmmword [edx + 0xc], xmm0
lock dec dword [ecx]
mov edi, dword [esi + 0xd0]
jne 0x511ca5
mov ebx, edx
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
call fcn.004f2ff0
mov edx, ebx
mov dword [edi - 0x18], 0
mov dword [edi - 0x14], 0x5620e0
mov dword [edi - 0x10], edx
mov dword [edi - 0xc], 0x741558
mov dword [esi + 0x1c], edx
mov dword [edi - 8], 0x562190
jmp 0x511647
mov eax, dword [esi + 0x100]
inc eax
mov ecx, dword [esi + 0x1c]
dec edi
mov dword [esi + 0xa8], eax
inc ecx
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], edi
mov edi, dword [esi + 0x28]
jmp 0x5119aa
mov ecx, 4
mov edx, 0x1c
call fcn.00709d20
ud2