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

Disassembly:
sub esp, 0x48
mov eax, dword [0x83a534]
xor eax, esp
mov dword [esp + 0x44], eax
movups xmm0, xmmword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x6c]
push edi
xor edi, edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
movups xmmword [esp + 0x44], xmm0
test esi, esi
je 0x5212fa
cmp dword [esi + 0x11f0], 0xc0dedbad
jne 0x5212fa
mov ecx, fcn.005340f0
nop word [eax + eax]
mov al, byte [ebp + 0xe5]
xor ebx, ebx
mov byte [esp + 0x12], 0
mov byte [ebp + 0xe5], bl
test al, al
je 0x52032c
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
test eax, eax
je 0x52032c
mov ebp, dword [eax]
cmp dword [ebp + 0x24], 2
je 0x520302
mov dword [ebp + 0x24], 2
test ecx, ecx
je 0x520302
push ebp
call fcn.005340f0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x34]
add eax, 0x24
push eax
call fcn.00535b30
push 8
push 0
push 0
push ebp
call fcn.0051e440
mov byte [ebp + 0x10f2], 1
add esp, 0x1c
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi + 8]
test eax, eax
je 0x5204b9
mov ecx, dword [esi + 0x24]
cmp ecx, 2
jle 0x520346
cmp ecx, 0xf
jge 0x520346
mov dword [eax], esi
cmp dword [esi + 8], ebx
je 0x5204b9
mov eax, dword [esi + 0x24]
cmp eax, 2
jl 0x5204b9
cmp eax, 0xf
jge 0x5204b9
cmp eax, 8
setle al
movzx eax, al
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005302b0
add esp, 0xc
test edx, edx
jg 0x5204b9
jl 0x52038e
test eax, eax
jae 0x5204b9
mov eax, dword [esi + 0x24]
movups xmm0, xmmword [esi + 0xc08]
cmp eax, 3
jne 0x5203cc
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x64]
movups xmmword [eax], xmm0
call fcn.005358f0
push edx
push eax
push 0x776f98
push esi
call fcn.0052ec50
add esp, 0x30
jmp 0x52048b
cmp eax, 4
jne 0x520400
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x64]
movups xmmword [eax], xmm0
call fcn.005358f0
push edx
push eax
push 0x776fc8
push esi
call fcn.0052ec50
add esp, 0x30
jmp 0x52048b
mov edx, dword [esi + 0x88]
mov eax, edx
mov ecx, dword [esi + 0x8c]
and eax, ecx
cmp eax, 0xffffffff
je 0x520452
push ecx
push edx
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x74]
movups xmmword [eax], xmm0
call fcn.005358f0
add esp, 0x20
push edx
push eax
push 0x776ff8
push esi
call fcn.0052ec50
add esp, 0x20
jmp 0x52048b
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [eax], xmm0
call fcn.005358f0
add esp, 0x20
push edx
push eax
push 0x777050
push esi
call fcn.0052ec50
add esp, 0x18
cmp dword [esi + 0x24], 8
jle 0x5204a3
push 2
push dword [esi + 8]
call fcn.0052f7c0
add esp, 8
mov byte [esp + 0x12], 1
push 1
mov edi, 0x1c
push edi
push esi
call fcn.0051fda0
add esp, 0xc
jmp case.0x5204c5.1
mov eax, dword [esi + 0x24]
cmp eax, 0x10
ja case.default.0x5204c5
jmp dword [eax*4 + 0x521314]
push esi
call fcn.00534190
mov edi, eax
add esp, 4
test edi, edi
jne case.0x5204c5.1
cmp dword [esi + 0x24], 2
je 0x5204fe
mov eax, fcn.005340f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x5204fe
push esi
call fcn.005340f0
add esp, 4
push 1
push esi
call fcn.0053c100
add esp, 8
or ebx, 0xffffffff
jmp case.0x5204c5.1
push esi
call fcn.0051ee40
mov edi, eax
add esp, 4
test edi, edi
jne case.0x5204c5.1
push 2
push esi
call fcn.0053c100
mov eax, dword [esi + 0x638]
add esp, 8
test eax, eax
je 0x520547
push 0xa
cdq
push edx
push eax
push esi
call fcn.0051e440
add esp, 0x10
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x52055f
push 2
cdq
push edx
push eax
push esi
call fcn.0051e440
add esp, 0x10
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x26]
push eax
push esi
call fcn.0052a070
mov edi, eax
add esp, 0xc
cmp edi, 0x59
jne 0x5205a1
cmp dword [esi + 0x24], 1
je 0x520586
mov dword [esi + 0x24], 1
lea eax, [esi + 0xc]
push eax
push esi
push dword [ebp + 0x28]
lea eax, [ebp + 0x24]
push eax
call fcn.00535ac0
add esp, 0x10
xor edi, edi
jmp case.0x5204c5.1
cmp byte [esi + 0x10f2], bl
je 0x5205bf
push 0x777098
push esi
call fcn.0052ed30
push dword [esi + 0x78]
call fcn.00521640
add esp, 0xc
test edi, edi
jne case.0x5204c5.1
cmp byte [esp + 0x22], bl
je 0x5205e8
cmp dword [esi + 0x24], 3
mov ecx, fcn.005340f0
je 0x5210f2
mov dword [esi + 0x24], 3
jmp 0x5210f2
or ebx, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x52061b
cmp dword [esi + 0x24], 8
je case.0x5204c5.1
mov eax, fcn.00533640
mov dword [esi + 0x24], 8
test eax, eax
je case.0x5204c5.1
push esi
call fcn.00533640
jmp 0x5210ea
push dword [esi + 8]
call fcn.00533670
add esp, 4
test al, al
jne 0x520812
cmp dword [esi + 0x24], 4
mov ecx, fcn.005340f0
je 0x5210f2
mov dword [esi + 0x24], 4
jmp 0x5210f2
mov edi, dword [esi + 8]
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x510], bl
je 0x520660
mov eax, dword [edi + 0x34c]
jmp 0x520676
cmp byte [edi + 0x518], bl
je 0x520670
mov eax, dword [edi + 0x31c]
jmp 0x520676
mov eax, dword [edi + 0x304]
push dword [edi + 0x364]
mov dword [esp + 0x20], eax
push eax
push edi
call fcn.00536210
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x5206b9
push dword [esp + 0x1c]
mov dword [edi + 0x6fc], eax
push 0x7770c0
mov byte [edi + 0x708], 1
xor edi, edi
push esi
call fcn.0052ed30
add esp, 0xc
cmp dword [esp + 0x14], ebx
jne 0x5206cb
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call fcn.00536ac0
add esp, 8
mov edi, eax
push esi
push ebp
call fcn.00521920
add esp, 8
cmp dword [esp + 0x14], ebx
je 0x5206f4
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.00536790
mov edi, eax
add esp, 8
test edi, edi
je 0x52070b
mov dword [esi + 8], ebx
mov ecx, fcn.005340f0
test edi, edi
je 0x5210f2
mov byte [esp + 0x12], 1
jmp 0x5210f2
or ebx, 0xffffffff
cmp byte [esp + 0x13], 0
jne 0x5205f2
push dword [esi + 8]
call fcn.00533670
add esp, 4
test al, al
je 0x52062e
jmp 0x520812
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.00538ec0
mov edi, eax
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0x514], bl
je 0x520787
xor edi, edi
or ebx, 0xffffffff
push edi
push edi
push esi
call fcn.0051fda0
add esp, 0xc
mov ecx, fcn.005340f0
cmp dword [esi + 0x24], 2
je 0x5210f2
mov dword [esi + 0x24], 2
test ecx, ecx
je 0x5210f2
push esi
call fcn.005340f0
jmp 0x5210ea
test edi, edi
jne 0x52086a
cmp dword [eax + 0x358], 2
jne 0x5207a4
cmp byte [eax + 0x50e], bl
je case.0x5204c5.1
push eax
call fcn.00533620
add esp, 4
test al, al
je case.0x5204c5.1
or ebx, 0xffffffff
mov ecx, fcn.005340f0
cmp dword [esi + 0x24], 6
je 0x5210f2
mov dword [esi + 0x24], 6
jmp 0x5210f2
lea eax, [esp + 0x23]
push eax
push 0
push dword [esi + 8]
call fcn.0052faf0
add esp, 0xc
mov edi, eax
cmp byte [esp + 0x23], bl
je 0x520850
test edi, edi
jne 0x520858
mov eax, dword [esi + 8]
cmp dword [eax + 0x358], 2
jne 0x520805
cmp byte [eax + 0x50e], bl
je 0x520812
push eax
call fcn.00533670
add esp, 4
test al, al
je 0x52082d
cmp dword [esi + 0x24], 5
mov ecx, fcn.005340f0
je 0x5210f2
mov dword [esi + 0x24], 5
jmp 0x5210f2
mov eax, dword [esi + 8]
xor ecx, ecx
or ebx, 0xffffffff
cmp byte [eax + 0x513], cl
sete cl
add ecx, 5
push ecx
push esi
call fcn.0051fbe0
add esp, 8
jmp case.0x5204c5.1
test edi, edi
je case.0x5204c5.1
push esi
call fcn.00534180
push 1
push edi
push esi
call fcn.0051fda0
add esp, 0x10
mov byte [esp + 0x12], 1
jmp case.0x5204c5.1
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.005216a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x520858
cmp byte [esp + 0x13], bl
jne 0x5208cb
cmp dword [esi + 0x24], 7
mov ecx, fcn.005340f0
je 0x5210f2
mov dword [esi + 0x24], 7
jmp 0x5210f2
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.00521760
mov edi, eax
add esp, 8
test edi, edi
jne 0x520858
cmp byte [esp + 0x13], bl
je case.0x5204c5.1
cmp dword [esi + 0x24], 8
je 0x5208ea
mov eax, fcn.00533640
mov dword [esi + 0x24], 8
test eax, eax
je 0x5208ea
push esi
call fcn.00533640
add esp, 4
or ebx, 0xffffffff
jmp case.0x5204c5.1
cmp byte [esi + 0xb49], bl
je 0x52091e
push 0
push dword [esi + 8]
call fcn.0052f7c0
add esp, 8
cmp dword [esi + 0x24], 0xe
je 0x520914
mov dword [esi + 0x24], 0xe
xor edi, edi
or ebx, 0xffffffff
jmp case.0x5204c5.1
lea eax, [esp + 0x19]
push eax
push esi
call fcn.0051fd00
mov edi, eax
add esp, 8
test edi, edi
jne 0x5209be
cmp byte [esp + 0x19], bl
jne 0x52098a
cmp byte [esi + 0x10eb], bl
je 0x520976
mov eax, dword [esi + 0x10f8]
cmp eax, 7
je 0x520954
cmp eax, 5
jne 0x520976
push 0
push 0
push esi
call fcn.0051fda0
add esp, 0xc
cmp dword [esi + 0x24], 0xe
je 0x52096e
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5204c5.1
cmp dword [esi + 0x24], 9
je 0x520983
mov dword [esi + 0x24], 9
xor ebx, ebx
jmp case.0x5204c5.1
mov eax, dword [esi + 8]
cmp byte [eax + 0x51e], bl
je 0x5209a9
cmp dword [esi + 0x24], 0xa
je 0x5209a2
mov dword [esi + 0x24], 0xa
xor ebx, ebx
jmp case.0x5204c5.1
cmp dword [esi + 0x24], 0xb
je 0x5209b6
mov dword [esi + 0x24], 0xb
or ebx, 0xffffffff
jmp case.0x5204c5.1
cmp edi, 0x37
jne 0x520a7b
mov eax, dword [esi + 8]
cmp byte [eax + 0x516], bl
je 0x520a7b
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push eax
call fcn.00534880
add esp, 8
test eax, eax
je 0x5209f3
mov edi, eax
mov byte [esp + 0x12], 1
push esi
call fcn.00534180
push 0
push edi
push esi
call fcn.0051fda0
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x520a6a
test eax, eax
je 0x520a24
cmp eax, 0x37
je 0x520a24
push ecx
mov edi, eax
call dword [0x83a874]
jmp 0x5210ea
push 2
push ecx
push esi
call fcn.00533e10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x520a5a
cmp dword [esi + 0x24], 2
je 0x520a55
mov eax, fcn.005340f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x520a55
push esi
call fcn.005340f0
add esp, 4
or ebx, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x83a874]
jmp 0x5210ea
push ecx
mov byte [esp + 0x16], 1
call dword [0x83a874]
jmp 0x5210ea
push esi
call fcn.00534180
add esp, 4
cmp dword [esi + 8], ebx
je 0x520a95
push 0
push edi
push esi
call fcn.0051fda0
add esp, 0xc
mov byte [esp + 0x12], 1
jmp case.0x5204c5.1
lea eax, [esp + 0x19]
push eax
push dword [esi + 8]
call fcn.005217a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x520ae2
cmp byte [esp + 0x19], bl
je case.0x5204c5.1
mov eax, dword [esi + 8]
xor ecx, ecx
cmp byte [eax + 0x51e], cl
sete cl
add ecx, 0xa
push ecx
push esi
call fcn.0051fbe0
add esp, 8
or ebx, 0xffffffff
jmp case.0x5204c5.1
push esi
call fcn.00534180
push 0
push edi
push esi
call fcn.0051fda0
add esp, 0x10
mov byte [esp + 0x12], 1
jmp case.0x5204c5.1
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
call fcn.0051fd50
mov edi, eax
add esp, 8
test edi, edi
jne 0x520ae2
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x520983
cmp ecx, 1
sete al
lea eax, [eax*2 + 9]
push eax
push esi
call fcn.0051fbe0
add esp, 8
or ebx, 0xffffffff
jmp case.0x5204c5.1
mov eax, dword [esi + 8]
cmp byte [eax + 0x528], bl
je 0x520b53
push ebp
call fcn.00521640
add esp, 4
mov eax, dword [esi + 8]
cmp dword [eax + 0x584], 0xffffffff
jne 0x520b9e
cmp dword [eax + 0x588], 0xffffffff
jne 0x520b9e
cmp byte [esi + 0x10eb], bl
je 0x520b89
mov eax, dword [eax + 0x560]
test dword [eax + 0x44], 0x1000
jne 0x520b89
mov dword [esi + 0x10f8], 7
cmp dword [esi + 0x24], 0xe
je 0x520bab
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5204c5.1
cmp dword [esi + 0x24], 0xc
je 0x520bab
mov dword [esi + 0x24], 0xc
or ebx, 0xffffffff
jmp case.0x5204c5.1
push dword [esi + 8]
call fcn.0053c250
add esp, 4
test eax, eax
je 0x520bcc
mov edi, 0x2a
jmp case.0x5204c5.1
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0053d690
mov edi, eax
add esp, 0x14
test edi, edi
jne case.0x5204c5.1
mov edx, dword [esi + 0x66c]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x668]
movlpd qword [esp + 0x24], xmm0
test edx, edx
jl 0x520c4f
jg 0x520c0b
test ecx, ecx
je 0x520c4f
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc38]
push edx
push ecx
push dword [esi + 0xc4c]
movups xmmword [eax], xmm0
push dword [esi + 0xc48]
push dword [esi + 0xb9c]
push dword [esi + 0xb98]
call fcn.0053be40
add esp, 0x38
mov dword [esp + 0x1c], edx
jmp 0x520c5b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x674]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x14], eax
movlpd qword [esp + 0x30], xmm0
test edx, edx
jl 0x520cc0
jg 0x520c7e
test ecx, ecx
je 0x520cc0
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc50]
push edx
push ecx
push dword [esi + 0xc64]
movups xmmword [eax], xmm0
push dword [esi + 0xc60]
push dword [esi + 0xb94]
push dword [esi + 0xb90]
call fcn.0053be40
add esp, 0x38
mov ecx, eax
jmp 0x520cc8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x1c]
jne 0x520d00
mov eax, ecx
or eax, edx
jne 0x520d00
cmp dword [esi + 0x24], 0xc
je 0x520ce5
mov dword [esi + 0x24], 0xc
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0053c3f0
add esp, 0x14
jmp case.0x5204c5.1
cmp dword [esp + 0x1c], edx
jl 0x520d25
mov eax, dword [esp + 0x14]
jg 0x520d10
cmp eax, ecx
jb 0x520d25
push 0xb
push dword [esp + 0x20]
push eax
push esi
call fcn.0051e440
add esp, 0x10
jmp case.0x5204c5.1
push 0xb
push edx
push ecx
push esi
call fcn.0051e440
add esp, 0x10
jmp case.0x5204c5.1
mov edx, dword [esi + 0x66c]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x668]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1b], bl
mov byte [esp + 0x21], bl
movlpd qword [esp + 0x24], xmm0
test edx, edx
jl 0x520da6
jg 0x520d62
test ecx, ecx
je 0x520da6
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc38]
push edx
push ecx
push dword [esi + 0xc4c]
movups xmmword [eax], xmm0
push dword [esi + 0xc48]
push dword [esi + 0xb9c]
push dword [esi + 0xb98]
call fcn.0053be40
add esp, 0x38
mov dword [esp + 0x38], edx
jmp 0x520db2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x674]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0x30], xmm0
test edx, edx
jl 0x520e1b
jg 0x520dd5
test ecx, ecx
je 0x520e1b
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc50]
push edx
push ecx
push dword [esi + 0xc64]
movups xmmword [eax], xmm0
push dword [esi + 0xc60]
push dword [esi + 0xb94]
push dword [esi + 0xb90]
call fcn.0053be40
add esp, 0x38
mov dword [esp + 0x30], eax
mov ecx, eax
jmp 0x520e27
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jne 0x52100c
mov eax, ecx
or eax, edx
jne 0x52100c
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x1e]
push eax
push esi
push dword [esi + 8]
call fcn.00534550
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x1a], bl
jne 0x520ea1
cmp edi, 0x38
je 0x520ea1
cmp edi, 0x5c
jne 0x520ed3
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x560]
test byte [eax + 0x44], 2
jne 0x520e8a
cmp edi, 0x5c
je 0x520e8a
push 2
push ecx
call fcn.0052f7c0
add esp, 8
push esi
call fcn.00534180
push 1
push edi
push esi
call fcn.0051fda0
add esp, 0x10
jmp case.0x5204c5.1
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call fcn.00534880
add esp, 8
test eax, eax
jne 0x520ecd
cmp dword [esp + 0x14], ebx
setne al
mov byte [esp + 0x1b], al
test al, al
je 0x520ed3
xor edi, edi
mov byte [esp + 0x1a], 1
jmp 0x520ee1
test edi, edi
jne 0x520e6b
mov edi, eax
test edi, edi
jne 0x520e6b
cmp byte [esp + 0x1a], bl
je 0x520fec
push esi
call fcn.00534180
add esp, 4
cmp dword [esi + 0x12c], ebx
jne 0x520f6e
cmp byte [esp + 0x1b], bl
jne 0x520f98
cmp dword [esi + 0x128], ebx
je 0x520f55
push dword [esp + 0x14]
call dword [0x83a874]
mov eax, dword [esi + 0x128]
push 1
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esi + 0x128], ebx
call fcn.00533e10
push dword [esp + 0x24]
mov edi, eax
call dword [0x83a874]
add esp, 0x14
test edi, edi
je 0x520f55
push 1
push edi
push esi
mov byte [esp + 0x1e], 1
call fcn.0051fda0
mov edi, eax
add esp, 0xc
test edi, edi
jne case.0x5204c5.1
cmp dword [esi + 0x24], 0xe
je 0x52096e
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5204c5.1
cmp byte [esp + 0x1b], bl
jne 0x520f98
push dword [esp + 0x14]
call dword [0x83a874]
mov eax, dword [esi + 0x12c]
add esp, 4
mov dword [esp + 0x14], eax
mov edi, 3
mov dword [esi + 0x12c], ebx
jmp 0x520f9d
mov edi, 2
push 0
push 0
push esi
call fcn.0051fda0
push edi
push dword [esp + 0x24]
push esi
call fcn.00533e10
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x520fdd
cmp dword [esi + 0x24], 2
je 0x520fda
mov eax, fcn.005340f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x520fda
push esi
call fcn.005340f0
add esp, 4
or ebx, 0xffffffff
push dword [esp + 0x14]
call dword [0x83a874]
jmp 0x5210ea
cmp byte [esp + 0x21], bl
je case.0x5204c5.1
push 8
push 0
push 0
push esi
call fcn.0051e440
add esp, 0x10
xor ebx, ebx
jmp case.0x5204c5.1
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0053c3f0
add esp, 0x14
cmp dword [esi + 0x24], 0xd
je 0x52102f
mov dword [esi + 0x24], 0xd
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, ecx
jl 0x52105c
jg 0x521047
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jb 0x521060
push 0xb
push edx
push dword [esp + 0x24]
push esi
call fcn.0051e440
add esp, 0x10
jmp case.0x5204c5.1
mov eax, dword [esp + 0x30]
push 0xb
push ecx
push eax
push esi
call fcn.0051e440
add esp, 0x10
jmp case.0x5204c5.1
mov eax, dword [esi + 8]
or ebx, 0xffffffff
test eax, eax
je 0x5210a2
cmp byte [eax + 0x528], 0
je 0x52108b
push ebp
call fcn.00521640
add esp, 4
push 0
push edi
push esi
call fcn.0051fda0
test edi, edi
push esi
cmove edi, eax
call fcn.0051e410
add esp, 0x10
cmp byte [esi + 0x10eb], 0
je 0x5210c8
cmp dword [esi + 0x10f8], 7
je 0x5210c8
cmp dword [esi + 0x24], 0
mov ecx, fcn.005340f0
je 0x5210f2
mov dword [esi + 0x24], 0
jmp 0x5210f2
cmp dword [esi + 0x24], 0xf
je case.0x5204c5.1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, fcn.0051e3a0
test eax, eax
je case.0x5204c5.1
push esi
call fcn.0051e3a0
add esp, 4
mov ecx, fcn.005340f0
cmp dword [esi + 0x24], 0xf
jge 0x521244
test edi, edi
je 0x5211d0
lea eax, [ebp + 0x24]
mov ebp, dword [eax]
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x521151
mov ebx, dword [ebp]
cmp dword [ebx + 0x24], 2
je 0x521132
mov dword [ebx + 0x24], 2
test ecx, ecx
je 0x521132
push ebx
call fcn.005340f0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push ebp
push eax
call fcn.00535b30
push 8
push 0
push 0
push ebx
call fcn.0051e440
add esp, 0x1c
mov byte [ebx + 0x10f2], 1
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x521199
cmp byte [esp + 0x12], 0
je 0x5211a8
push 0
lea eax, [esi + 0x18]
cmp edi, 0x1c
push eax
lea eax, [ebx + 0x5c0]
sete byte [esp + 0x48]
push eax
call fcn.00535b30
push 1
push ebx
push esi
mov dword [esi + 8], 0
call fcn.00527690
push dword [esp + 0x58]
push ebx
push esi
call fcn.0052a170
add esp, 0x24
jmp 0x5211a8
cmp dword [esi + 0x24], 2
jne 0x5211a8
push esi
call fcn.00534180
add esp, 4
cmp dword [esi + 0x24], 0xf
je 0x52123d
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, fcn.0051e3a0
test eax, eax
je 0x52123d
push esi
call fcn.0051e3a0
jmp 0x52123a
mov eax, dword [esi + 8]
test eax, eax
je 0x521240
push eax
call fcn.0053c250
add esp, 4
test eax, eax
je 0x521240
push 2
push dword [esi + 8]
mov edi, 0x2a
call fcn.0052f7c0
mov ecx, dword [esi + 0x24]
xor eax, eax
add esp, 8
cmp ecx, 0xe
setge al
add eax, 0xe
cmp ecx, eax
je 0x52123d
mov dword [esi + 0x24], eax
cmp ecx, 0xe
jl 0x521216
mov eax, dword [esi + 0x78]
dec dword [eax + 0x10]
xor eax, eax
cmp ecx, 0xe
setge al
cmp dword [eax*4 + 0x776f60], 0
je 0x52123d
xor eax, eax
cmp ecx, 0xe
push esi
setge al
mov eax, dword [eax*4 + 0x776f60]
call eax
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x24], 0xf
jne 0x52128d
mov eax, dword [esi + 0xb10]
test eax, eax
je 0x521259
push edi
push esi
call eax
add esp, 8
jmp 0x521280
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x2c]
push eax
push eax
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ecx + 0x14]
push dword [ecx + 0x18]
push eax
call fcn.00535ac0
add esp, 0x10
xor ebx, ebx
cmp dword [esi + 0x24], 0x10
je 0x52128d
mov dword [esi + 0x24], 0x10
mov ebp, dword [esp + 0x2c]
mov ecx, fcn.005340f0
cmp ebx, 0xffffffff
je 0x5202c0
mov cl, byte [ebp + 0xe5]
test cl, cl
mov ecx, fcn.005340f0
jne 0x5202c0
mov dword [esi + 0x28], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb313
add esp, 0x48
ret
mov dword [esi + 0x28], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb313
add esp, 0x48
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb313
add esp, 0x48
ret
mov ecx, dword [esp + 0x54]
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb313
add esp, 0x48
ret