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

Disassembly:
push 0x3c
mov eax, 0xda576a
call fcn.00d1ef12
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov cl, byte [ebx + 0x80]
mov dword [ebp - 0x2c], eax
mov eax, edi
or eax, 0x40000000
and edi, 0xbfffffff
and cl, 4
push ebx
cmove edi, eax
mov dword [ebp - 0x38], edi
call fcn.0054b370
mov esi, eax
mov dword [ebp - 0x34], esi
pop ecx
test esi, esi
je 0x52f884
cmp edi, dword [esi + 8]
je 0x52fa87
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebx + 0x78]
push eax
call fcn.0054bd73
xor eax, eax
mov ecx, ebx
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00557014
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push dword [ebp - 0x24]
push eax
call fcn.0051dd57
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push dword [ebp - 0x24]
push ebx
push eax
call fcn.0051e406
or dword [ebp - 0x30], 0xffffffff
xor eax, eax
add esp, 0x1c
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1a], al
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x48], xmm0
test esi, esi
je 0x52f976
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x40]
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 0x19], al
call dword [edx + 0x38]
mov byte [ebp - 0x1a], al
lea edi, [ebp - 0x48]
mov eax, dword [esi + 0x1c]
add esi, 0xc
mov dword [ebp - 0x28], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x34]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x88]
and byte [ebx + 0x80], 0xfe
mov dword [ebp - 0x30], eax
call fcn.00549c83
push ebx
lea ecx, [eax + 0x54]
call fcn.004bd697
mov ecx, ebx
call fcn.00553d54
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x52f969
cmp dword [esi + 8], 0
je 0x52f969
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.005674ac
mov eax, dword [edi]
mov ecx, edi
push 1
mov byte [ebp - 4], 0
call dword [eax]
mov edi, dword [ebp - 0x38]
jmp 0x52f979
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x52fa70
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x52f986
push ebx
call fcn.00561d0d
test esi, esi
je 0x52fa87
cmp dword [esi + 8], 0
je 0x52fa70
push dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, ebx
or byte [ebx + 0x80], 1
push edi
call dword [eax + 0xb4]
mov edi, eax
call fcn.00549c83
push ebx
lea ecx, [eax + 0x54]
call fcn.004bcedc
mov eax, dword [ebp - 0x24]
mov ecx, edi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x20], eax
call fcn.00569a1f
mov ecx, dword [ebp - 0x30]
test ecx, ecx
js 0x52f9e2
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x8c]
mov al, byte [ebx + 0x80]
mov ecx, edi
mov edx, dword [edi]
shr al, 1
and al, 1
movzx eax, al
push eax
call dword [edx + 0xc]
push ebx
call fcn.0054b370
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
je 0x52fa70
cmp byte [ebp - 0x19], 0
je 0x52fa26
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x3c]
add edi, 0xc
lea esi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
cmp byte [ebp - 0x1a], 0
je 0x52fa35
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x34]
test byte [ebx + 0x81], 8
je 0x52fa47
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x60]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
mov dword [edi + 0x1c], eax
call fcn.00562083
mov ecx, ebx
call fcn.00553d54
mov ecx, ebx
call fcn.00545f00
test eax, eax
je 0x52fa70
push 4
push eax
call fcn.005599b3
pop ecx
pop ecx
test esi, esi
je 0x52fa87
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x52fa87
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
call fcn.00d1eed0
ret 8