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

Disassembly:
push 0xffffffffffffffff
push 0x59d8fc
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [esp + 0x68]
test dword [esi + 8], 0x3fffffff
je 0x517ad4
mov ecx, esi
call dword [0x5a754c]
cmp eax, 8
jne 0x517844
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call dword [0x5a7550]
mov esi, dword [esp + 0x68]
cmp dword [esi + 4], 0
mov dword [esp + 0x60], 0
je 0x51781f
mov eax, dword [esi]
test eax, eax
je 0x51761a
cmp eax, 0xffffffff
je 0x517614
mov ecx, 1
lock xadd dword [esi], ecx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x38], esi
jmp 0x51764e
call dword [0x5a79c4]
mov edx, dword [esp + 0x68]
mov ecx, dword [edx + 0xc]
mov esi, eax
mov dword [esp + 0x38], esi
test ecx, ecx
je 0x51764e
push esi
call fcn.004e4c90
mov dword [esi + 0xc], eax
mov edx, dword [eax]
lea ecx, [esi + 8]
and edx, 3
or edx, ecx
mov ecx, esi
mov dword [eax], edx
call dword [0x5a7908]
cmp dword [esi + 0xc], 0
je 0x517659
mov ecx, dword [esi + 0x14]
jmp 0x51765c
lea ecx, [esi + 8]
lea eax, [esi + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x60], 1
cmp ecx, eax
je 0x517811
mov ebp, dword [0x5a7750]
jmp 0x517684
mov ecx, dword [esp + 0x3c]
mov edi, ecx
call dword [0x5a79d4]
lea esi, [edi + 0x10]
mov ecx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call dword [0x5a754c]
mov ebx, eax
cmp ebx, 8
je 0x517803
lea eax, [esp + 0x18]
add edi, 0xc
push eax
mov ecx, edi
call ebp
mov eax, ebx
dec eax
mov byte [esp + 0x60], 2
je 0x51771e
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [0x5a7b54]
mov ebx, eax
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x64], 4
call ebp
mov dword [esp + 0x1c], eax
push 0
mov ecx, ebx
mov byte [esp + 0x64], 5
call dword [0x5a7d9c]
mov ecx, dword [esp + 0x20]
push eax
call dword [0x5a7d9c]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.00563d20
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 4
call dword [0x5a7d74]
lea ecx, [esp + 0x24]
jmp 0x517765
push 0xa
push 0
mov ecx, esi
call dword [0x5a785c]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x5a7a18]
add esp, 0xc
push 0
mov ecx, eax
mov byte [esp + 0x64], 3
call dword [0x5a74b8]
push eax
lea ecx, [esp + 0x20]
call dword [0x5a7d9c]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.00563d20
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 2
call dword [0x5a7d74]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [0x5a7b54]
mov esi, eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov byte [esp + 0x64], 6
call ebp
mov edi, eax
push str.default
push str.void___cdecl_FAV::Internal::setOptionsToDict_const_class_QVariant__struct_AVDictionary__
push 0x11d
push str..._favinternal.cpp
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 7
call dword [0x5a7720]
mov ecx, esi
call dword [0x5a7d9c]
push eax
mov ecx, edi
call dword [0x5a7d9c]
push eax
lea edx, [esp + 0x4c]
push str.dict:__s__s
push edx
call fcn.0051a710
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 6
call dword [0x5a7d74]
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 2
call dword [0x5a7d74]
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call dword [0x5a7d74]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x3c], eax
jne 0x517680
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 0
call fcn.00516cb0
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.004e5240
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [0x5a7554]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x60], 8
jne 0x5178b3
mov edx, dword [ecx + 8]
lea eax, [ecx + 8]
mov dword [esp + 0x60], 0xffffffff
test edx, edx
je 0x517894
cmp edx, 0xffffffff
je 0x517ad4
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x517ad4
mov ecx, dword [esp + 0x14]
push 0x4dff70
call dword [0x5a7994]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.00516d70
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x60], 9
cmp edi, ecx
je 0x517a71
mov ebp, dword [0x5a7750]
jmp 0x5178e4
mov edi, dword [esp + 0x3c]
push edi
call dword [0x5a79d8]
lea esi, [edi + 0x10]
add esp, 4
mov ecx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call dword [0x5a754c]
mov ebx, eax
cmp ebx, 0x1c
je 0x517a63
lea ecx, [esp + 0x18]
add edi, 8
push ecx
mov ecx, edi
call ebp
mov eax, ebx
dec eax
mov byte [esp + 0x60], 0xa
mov ecx, esi
je 0x517980
lea edx, [esp + 0x30]
push edx
call dword [0x5a7b54]
mov ebx, eax
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov byte [esp + 0x64], 0xc
call ebp
mov dword [esp + 0x68], eax
push 0
mov ecx, ebx
mov byte [esp + 0x64], 0xd
call dword [0x5a7d9c]
mov ecx, dword [esp + 0x6c]
push eax
call dword [0x5a7d9c]
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.00563d20
add esp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 0xc
call dword [0x5a7d74]
lea ecx, [esp + 0x30]
jmp 0x5179c5
push 0xa
push 0
call dword [0x5a785c]
push eax
lea edx, [esp + 0x34]
push edx
call dword [0x5a7a18]
add esp, 0xc
push 0
mov ecx, eax
mov byte [esp + 0x64], 0xb
call dword [0x5a74b8]
push eax
lea ecx, [esp + 0x20]
call dword [0x5a7d9c]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.00563d20
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0xa
call dword [0x5a7d74]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [0x5a7b54]
mov esi, eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
mov byte [esp + 0x64], 0xe
call ebp
mov edi, eax
push str.default
push str.void___cdecl_FAV::Internal::setOptionsToDict_const_class_QVariant__struct_AVDictionary__
push 0x136
push str..._favinternal.cpp
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 0xf
call dword [0x5a7720]
mov ecx, esi
call dword [0x5a7d9c]
push eax
mov ecx, edi
call dword [0x5a7d9c]
push eax
lea eax, [esp + 0x4c]
push str.dict:__s__s
push eax
call fcn.0051a710
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 0xe
call dword [0x5a7d74]
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0xa
call dword [0x5a7d74]
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 9
call dword [0x5a7d74]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x3c], ecx
jne 0x5178e0
mov edx, dword [ecx + 8]
mov esi, dword [0x5a7994]
lea eax, [ecx + 8]
mov byte [esp + 0x60], 8
test edx, edx
je 0x517a99
cmp edx, 0xffffffff
je 0x517aa0
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x517aa0
push 0x4dff70
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
add eax, 8
mov dword [esp + 0x60], 0xffffffff
test ecx, ecx
je 0x517ac9
cmp ecx, 0xffffffff
je 0x517ad4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x517ad4
mov ecx, dword [esp + 0x14]
push 0x4dff70
call esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret