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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
mov esi, ecx
push edi
movzx eax, word [esi + 0x78]
cmp eax, 1
je 0x5205db
cmp eax, 6
je 0x5205db
mov eax, dword [esi + 0x2a8]
test eax, eax
js 0x520389
cmp eax, 0x1194
jl 0x520498
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
cmp dword [esi + 0x200], 1
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], al
jne 0x5203b8
or cl, 0x80
cmp byte [esi + 0x214], 0
mov byte [esp + 0x10], cl
je 0x5203b8
or cl, 0x40
mov byte [esp + 0x10], cl
movzx ecx, word [esi + 0xcc]
mov eax, ecx
mov byte [esp + 0x13], cl
mov cl, byte [esi + 0x148]
shr eax, 8
mov byte [esp + 0x12], al
movzx eax, byte [esi + 0x144]
mov byte [esp + 0x14], al
movzx eax, byte [esi + 0x146]
mov byte [esp + 0x15], al
movzx eax, byte [esi + 0x166]
mov byte [esp + 0x16], al
movzx eax, byte [esi + 0x168]
mov byte [esp + 0x17], al
movzx eax, byte [esi + 0x13d]
shl cl, 4
and al, 0xf
or cl, al
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x624]
mov byte [esp + 0x18], cl
add eax, 4
mov ecx, 0xa
lea edi, [ecx + 0x16]
nop dword [eax]
mov dl, byte [eax]
cmp dl, 0xff
je 0x520447
mov byte [esp + ecx + 0x3d], dl
inc ecx
mov edx, dword [esp + 0xc]
inc edx
mov dword [esp + 0xc], edx
jmp 0x52044b
mov edx, dword [esp + 0xc]
add eax, 0x1c
sub edi, 1
jne 0x520430
movq xmm0, qword [esp + 0x10]
add ecx, 5
mov byte [esp + 0x19], dl
lea edx, [esp + 0x38]
mov ax, word [esp + 0x18]
mov word [esp + 0x45], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x3a], cl
push ecx
mov ecx, esi
movq qword [esp + 0x41], xmm0
mov byte [esp + 0x3c], 0xc2
mov byte [esp + 0x3d], al
mov word [esp + 0x3f], 0x113
call fcn.005264a0
add esp, 4
mov edx, dword [esi + 0x2a8]
test edx, edx
js 0x52068e
cmp edx, 0x1194
jge 0x52068e
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
cmp dword [esi + 0x200], 1
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], al
jne 0x5204d1
or cl, 0x80
mov byte [esp + 0x10], cl
movzx ecx, word [esi + 0xcc]
mov eax, ecx
mov byte [esp + 0x13], cl
mov cl, byte [esi + 0x148]
shr eax, 8
mov byte [esp + 0x12], al
movzx eax, byte [esi + 0x144]
mov byte [esp + 0x14], al
movzx eax, byte [esi + 0x146]
mov byte [esp + 0x15], al
movzx eax, byte [esi + 0x166]
mov byte [esp + 0x16], al
movzx eax, byte [esi + 0x168]
mov byte [esp + 0x17], al
movzx eax, byte [esi + 0x13d]
and al, 0xf
shl cl, 4
or cl, al
mov dword [esp + 0xc], 0
mov eax, dword [edx*4 + 0x20a514c]
mov edx, 0x14
mov byte [esp + 0x18], cl
movq xmm0, qword [eax + 0x86]
lea edi, [edx + 0xc]
mov ax, word [eax + 0x8e]
mov word [esp + 0x21], ax
mov eax, dword [esi + 0x624]
movq qword [esp + 0x19], xmm0
add eax, 4
mov cl, byte [eax]
cmp cl, 0xff
je 0x52057a
mov byte [esp + edx + 0x3d], cl
inc edx
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x52057e
mov ecx, dword [esp + 0xc]
add eax, 0x1c
sub edi, 1
jne 0x520563
movups xmm0, xmmword [esp + 0x10]
add edx, 5
mov byte [esp + 0x23], cl
mov eax, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x4d], eax
mov eax, edx
shr eax, 8
mov byte [esp + 0x3a], dl
push edx
lea edx, [esp + 0x3c]
mov byte [esp + 0x3c], 0xc2
movups xmmword [esp + 0x41], xmm0
mov byte [esp + 0x3d], al
mov word [esp + 0x3f], 0x11f
call fcn.005264a0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.004748f0
test eax, eax
jne 0x520676
test byte [esi + 0x1e8], 0x20
je 0x520615
mov eax, dword [esi + 0x624]
xor ecx, ecx
add eax, 4
nop
mov dl, byte [eax]
cmp dl, 0xff
je 0x52060c
cmp dl, 0x12
je 0x520676
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x520600
movups xmm0, xmmword [esi + 0x344]
movzx eax, word [esi]
lea edx, [esp + 0x38]
mov ecx, dword [esi]
mov word [esp + 0x10], ax
movzx eax, word [esi + 0x354]
movups xmmword [esp + 0x12], xmm0
mov word [esp + 0x22], ax
movups xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 0x20]
push 0x1a
movups xmmword [esp + 0x42], xmm0
mov dword [esp + 0x52], eax
mov dword [esp + 0x3c], 0xf31a00c2
mov word [esp + 0x40], 0x1f1
call fcn.00526480
add esp, 4
lea edx, [esp + 0x38]
mov ecx, esi
push 0x1a
call fcn.005264a0
add esp, 4
push esi
call fcn.00528330
push esi
call fcn.00528580
push esi
call fcn.005287a0
push esi
call fcn.00528910
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret