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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x12c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x52a975
push ebx
mov ebx, dword [edi + 0x258]
mov dword [ebp - 0x5c], ebx
test ebx, ebx
je 0x52a974
test eax, eax
je 0x52a974
cmp dword [ebp + 0x28], 0
je 0x52a974
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00514df0
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push 0x609ccc
push eax
call fcn.0051e360
add esp, 0x10
test eax, eax
je 0x529fb1
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov dword [ecx], eax
xorps xmm0, xmm0
xor edx, edx
movlpd qword [ebp - 0x68], xmm0
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x74]
sub eax, ecx
mov dword [ebp - 0x38], edx
test eax, 0xfffffffc
jle 0x52a3bb
push dword [ecx + edx*4]
mov ecx, edi
call fcn.005273d0
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ecx + eax*4]
test edx, edx
je 0x52a3a1
test byte [edx], 1
jne 0x52a3a1
mov eax, dword [edi + 0x258]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0
cmp dword [eax + 0x84], 0
je 0x52a076
mov ecx, dword [edi + 0x12c]
mov esi, dword [edx + 8]
call fcn.00514df0
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0051e360
mov eax, dword [ebx + 0x74]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov esi, dword [ecx]
add edi, esi
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ecx]
add edx, ecx
mov dword [eax + 0x10], esi
mov esi, dword [ebp - 0x44]
mov dword [eax + 0x18], edi
mov edi, dword [ebp - 0x50]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x68]
add dword [esi], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], eax
jmp 0x52a089
mov ecx, dword [ebp - 0x3c]
mov eax, dword [esi]
mov ecx, dword [ecx]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ecx
mov eax, dword [edi + 0x258]
cmp dword [eax + 0x2c], 2
jne 0x52a1ae
mov eax, dword [ebx + 0x74]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + ecx*4]
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [edi + 0x12c]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x52a1ae
mov eax, dword [ebx + 0x74]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x52a1ae
push eax
call fcn.0054e8b0
mov dword [ebp - 0x78], eax
test eax, eax
je 0x52a1ae
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [ebp - 0x24], xmm0
call dword [edx + 8]
mov ecx, dword [ebp - 0x78]
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x50]
mov edi, eax
push 0
push esi
push edi
mov ecx, dword [ecx + 0x12c]
call fcn.00510c50
mov esi, dword [ebp - 0x60]
add eax, dword [esi]
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00518df0
add esp, 0x18
test eax, eax
je 0x52a1ab
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [eax]
lea eax, [ecx + 3]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 0x7c], eax
sub eax, dword [ebp - 0x18]
add eax, dword [esi]
add eax, dword [ebp - 0x20]
cdq
sub eax, edx
mov edx, dword [ebp - 0x78]
sar eax, 1
add edx, 3
mov dword [ebp - 0x48], eax
add ecx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x20]
add eax, dword [esi]
add eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0xc], ecx
sar eax, 1
mov edx, ecx
mov dword [ebp - 8], eax
sub edx, dword [ebp - 0x14]
je 0x52a1ab
sub eax, dword [ebp - 0x48]
je 0x52a1ab
mov edi, dword [ebp - 0x38]
lea eax, [ecx + 3]
mov ecx, dword [ebp - 0x44]
movups xmm0, xmmword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x40]
add eax, 6
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + edi*4]
movups xmmword [eax + 0x3c], xmm0
mov edi, dword [ebp - 0x50]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
test al, 8
je 0x52a1d3
push eax
mov eax, dword [ebp - 0x60]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x68]
push dword [esi + 4]
push eax
call fcn.005278c0
jmp 0x52a1f2
mov ecx, dword [edi + 0x12c]
mov esi, dword [esi + 4]
call fcn.00514df0
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0051e360
add esp, 0x10
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
add esi, edx
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x54]
add eax, edi
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], esi
mov dword [ecx + 0x28], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
add edx, dword [ebp - 0x68]
mov dword [ebp - 0x40], edx
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
test eax, 0x2000
je 0x52a243
mov ecx, 0x2d0
jmp 0x52a26f
test eax, 0x40000
je 0x52a251
mov ecx, 0x310
jmp 0x52a26f
test eax, 0x3000000
jne 0x52a26a
test eax, 0x400100
je 0x52a335
mov ecx, 0x350
jmp 0x52a26f
mov ecx, 0x3d0
mov edi, dword [ebp - 0x50]
add ecx, edi
mov dword [ebp - 0x48], ecx
je 0x52a338
lea ecx, [esi + 0x1c]
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x34], xmm0
test al, 8
je 0x52a2b2
push eax
push dword [esi + 4]
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, edi
call fcn.00527fa0
mov ecx, dword [ebp - 0x38]
test eax, eax
jne 0x52a2b5
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax + 0x1c]
movups xmmword [ebp - 0x34], xmm0
jmp 0x52a2b5
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x74]
xorps xmm0, xmm0
mov esi, dword [eax + ecx*4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x1c]
sub ecx, dword [ebp - 0x34]
mov edx, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x48]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x70]
mov dword [esi + 0x50], edx
mov dword [esi + 0x58], edx
push eax
movlpd qword [ebp - 0x70], xmm0
call fcn.00519740
test eax, eax
mov eax, dword [ebp - 0x70]
je 0x52a327
test eax, eax
jle 0x52a327
cmp dword [ebp - 0x6c], 0
jle 0x52a327
mov eax, dword [ebx + 0x74]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx*4]
inc dword [eax + 0x4c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x4c]
add eax, dword [ebp - 0x70]
mov dword [ecx + 0x54], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x50]
add eax, dword [ebp - 0x6c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
inc edx
add edx, eax
inc eax
add dword [esi], eax
jmp 0x52a33b
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
cmp eax, edx
cmovle eax, edx
mov edx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x2c], 1
mov ecx, dword [edi + 0x12c]
call fcn.00514c40
test eax, eax
jne 0x52a380
mov ecx, dword [edi + 0x12c]
call fcn.00510c10
add eax, dword [ebp - 0x68]
add dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
jmp 0x52a3a1
mov eax, dword [ebp + 0x1c]
mov dword [esi], eax
mov ecx, dword [edi + 0x12c]
call fcn.00510c50
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x4c], ecx
cmovg ecx, dword [ebp - 0x4c]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
add dword [ecx], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x74]
inc edx
sub eax, ecx
mov dword [ebp - 0x38], edx
sar eax, 2
cmp edx, eax
jl 0x529fd1
mov eax, dword [ebp - 0x58]
xorps xmm0, xmm0
xor esi, esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], esi
movups xmmword [eax], xmm0
mov ecx, dword [edi + 0x12c]
call fcn.00514c40
test eax, eax
jne 0x52a4f3
mov eax, dword [edi + 0x258]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov edx, dword [eax + 0x78]
sub edx, dword [eax + 0x74]
sar edx, 2
mov dword [ebp - 0x3c], edx
test edx, edx
jle 0x52a4f3
mov eax, dword [ebx + 0x74]
mov ebx, edx
mov dword [ebp - 0x40], eax
nop dword [eax]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x52a4de
test byte [ecx], 1
jne 0x52a4de
cmp dword [ebp - 0x4c], 0
mov eax, dword [edi + 0x258]
mov edx, dword [eax + 0x84]
mov dword [ebp - 0x48], edx
jne 0x52a474
mov dword [ebp - 0x4c], 1
test edx, edx
je 0x52a453
mov ebx, dword [ecx + 0x10]
cmp ebx, dword [ecx + 0x20]
cmovge ebx, dword [ecx + 0x20]
mov dword [ebp - 0x44], ebx
jmp 0x52a459
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
test edx, edx
je 0x52a46f
mov esi, dword [ecx + 0x18]
cmp esi, dword [ecx + 0x28]
cmovle esi, dword [ecx + 0x28]
jmp 0x52a4de
mov esi, dword [ecx + 0x28]
jmp 0x52a4de
test edx, edx
je 0x52a488
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x60], ebx
cmovge eax, ebx
jmp 0x52a48e
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x44], eax
jl 0x52a4ac
test edx, edx
je 0x52a4a6
mov ebx, dword [ecx + 0x10]
cmp ebx, dword [ebp - 0x60]
cmovge ebx, dword [ebp - 0x60]
mov dword [ebp - 0x44], ebx
jmp 0x52a4ac
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
test edx, edx
je 0x52a4bd
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x28]
cmp edx, eax
cmovle edx, eax
jmp 0x52a4c2
mov edx, dword [ecx + 0x28]
mov eax, edx
mov ebx, dword [ebp - 0x3c]
cmp esi, edx
jg 0x52a4db
cmp dword [ebp - 0x48], 0
je 0x52a4d9
mov esi, dword [ecx + 0x18]
cmp esi, eax
cmovle esi, eax
jmp 0x52a4db
mov esi, eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x54], ecx
cmp ecx, ebx
jl 0x52a410
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x40], esi
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
sub eax, edx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 0
test eax, 0xfffffffc
jle 0x52a80b
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
xor esi, esi
mov dword [ebp - 0x3c], eax
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x52a7f4
test byte [ecx], 1
jne 0x52a7f4
mov eax, dword [edi + 0x258]
mov esi, dword [eax + 0x84]
mov eax, dword [ecx + 0x28]
sub eax, dword [ecx + 0x20]
mov dword [ebp - 0x48], esi
test esi, esi
je 0x52a55f
mov esi, dword [ecx + 0x18]
sub esi, dword [ecx + 0x10]
cmp esi, eax
cmovle esi, eax
jmp 0x52a561
mov esi, eax
cmp dword [ebp - 0x48], 0
je 0x52a582
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
inc eax
add eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea eax, [ecx + 0xc]
push eax
call dword [ebp - 0x3c]
mov edx, dword [ebx + 0x74]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + eax*4]
mov eax, dword [ecx + 0x20]
sub eax, dword [ecx + 0x28]
inc eax
add eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea eax, [ecx + 0x1c]
push eax
call dword [ebp - 0x3c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [eax + ecx*4]
test dword [ecx], 0x3442100
je 0x52a5b7
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x50], eax
mov ecx, dword [edi + 0x12c]
call fcn.00514c40
test eax, eax
jne 0x52a62c
mov eax, dword [edi + 0x258]
mov esi, dword [ebp - 0x40]
cmp dword [eax + 0x84], 0
je 0x52a5f0
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [eax + ecx*4]
mov eax, esi
sub eax, dword [ecx + 0x18]
push eax
push 0
lea eax, [ecx + 0xc]
push eax
call dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x74]
mov edx, dword [eax + ecx*4]
test byte [edx], 8
lea ecx, [edx + 0x1c]
mov dword [ebp - 0x48], ecx
je 0x52a620
mov ecx, dword [edx + 0x20]
mov eax, ecx
sub eax, dword [edx + 0x28]
add eax, esi
add eax, dword [ebp - 0x44]
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
push eax
push 0
push dword [ebp - 0x48]
jmp 0x52a629
mov eax, esi
sub eax, dword [edx + 0x28]
push eax
push 0
push ecx
call dword [ebp - 0x3c]
cmp dword [ebp - 0x4c], 0
mov eax, dword [edi + 0x258]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax + 0x84]
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x48], ecx
mov edx, dword [eax + edx*4]
jne 0x52a699
mov dword [ebp - 0x4c], 1
test ecx, ecx
je 0x52a661
mov ecx, dword [edx + 0x10]
cmp ecx, dword [edx + 0x20]
cmovge ecx, dword [edx + 0x20]
jmp 0x52a664
mov ecx, dword [edx + 0x20]
mov esi, dword [ebp - 0x58]
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + ecx*4]
mov eax, dword [edi + 0x258]
cmp dword [eax + 0x84], 0
je 0x52a691
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x28]
cmovle ecx, dword [edx + 0x28]
jmp 0x52a715
mov ecx, dword [edx + 0x28]
jmp 0x52a715
test ecx, ecx
mov ecx, dword [edx + 0x20]
je 0x52a6aa
mov esi, dword [edx + 0x10]
cmp esi, ecx
cmovge esi, ecx
jmp 0x52a6ac
mov esi, ecx
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
cmp eax, esi
jl 0x52a6c8
cmp dword [ebp - 0x48], 0
je 0x52a6c6
mov eax, dword [edx + 0x10]
cmp eax, ecx
cmovge eax, ecx
jmp 0x52a6c8
mov eax, ecx
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x258]
mov edx, dword [eax + 0x84]
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x48], edx
mov esi, dword [eax + esi*4]
mov eax, dword [esi + 0x28]
test edx, edx
je 0x52a6f7
mov edx, dword [esi + 0x18]
cmp edx, eax
cmovle edx, eax
jmp 0x52a6f9
mov edx, eax
mov ecx, dword [ecx + 0xc]
cmp ecx, edx
jg 0x52a712
cmp dword [ebp - 0x48], 0
je 0x52a710
mov ecx, dword [esi + 0x18]
cmp ecx, eax
cmovle ecx, eax
jmp 0x52a712
mov ecx, eax
mov esi, dword [ebp - 0x58]
mov dword [esi + 0xc], ecx
mov ecx, dword [edi + 0x12c]
call fcn.00514c40
test eax, eax
jne 0x52a7dd
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x52a7f1
test byte [ecx], 1
jne 0x52a7f1
cmp dword [ebp - 0x54], 0
mov eax, dword [edi + 0x258]
mov edx, dword [eax + 0x84]
jne 0x52a787
mov dword [ebp - 0x54], 1
test edx, edx
je 0x52a767
mov eax, dword [ecx + 0xc]
jmp 0x52a76a
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + ecx*4]
test dword [eax], 0x3442100
je 0x52a782
mov eax, dword [eax + 0x54]
jmp 0x52a7ee
mov eax, dword [eax + 0x24]
jmp 0x52a7ee
test edx, edx
je 0x52a790
mov esi, dword [ecx + 0xc]
jmp 0x52a793
mov esi, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp eax, esi
jl 0x52a7a8
test edx, edx
je 0x52a7a5
mov eax, dword [ecx + 0xc]
jmp 0x52a7a8
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esi + 8]
test dword [eax], 0x3442100
je 0x52a7ce
mov eax, dword [eax + 0x54]
cmp ecx, eax
cmovle ecx, eax
mov dword [esi + 8], ecx
jmp 0x52a7f1
mov eax, dword [eax + 0x24]
cmp ecx, eax
cmovg eax, ecx
mov ecx, eax
mov dword [esi + 8], ecx
jmp 0x52a7f1
cmp dword [ebp - 0x38], 0
jne 0x52a7f1
mov eax, dword [ebp - 0x74]
mov dword [esi], 0
mov eax, dword [eax]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x38]
mov eax, dword [ebx + 0x78]
inc esi
mov edx, dword [ebx + 0x74]
sub eax, edx
sar eax, 2
mov dword [ebp - 0x38], esi
cmp esi, eax
jl 0x52a525
mov ecx, dword [edi + 0x12c]
call fcn.00514c40
cmp eax, 1
jne 0x52a974
lea ecx, [ebp - 0x70]
xorps xmm0, xmm0
push ecx
lea ecx, [edi + 0x290]
movlpd qword [ebp - 0x70], xmm0
call fcn.00519740
test eax, eax
je 0x52a974
cmp dword [ebp - 0x70], 0
jle 0x52a974
cmp dword [ebp - 0x6c], 0
jle 0x52a974
mov eax, dword [ebx + 0x78]
xor esi, esi
mov ecx, dword [ebx + 0x74]
sub eax, ecx
mov dword [ebp - 0x3c], esi
test eax, 0xfffffffc
jle 0x52a974
nop word [eax + eax]
mov eax, dword [ecx + esi*4]
test dword [eax], 0x800
je 0x52a95d
movups xmm0, xmmword [eax + 0x1c]
mov ecx, dword [edi + 0x12c]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00510c50
movups xmm1, xmmword [ebp - 0x34]
push 0
push dword [ebp - 0x6c]
movaps xmm0, xmm1
psrldq xmm1, 4
psrldq xmm0, 0xc
movd ecx, xmm0
movd edx, xmm1
mov dword [ebp - 0x74], ecx
sub ecx, edx
mov dword [ebp - 0x4c], edx
add ecx, eax
mov eax, dword [ebp - 0x70]
push eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00518df0
add esp, 0x18
test eax, eax
je 0x52a95d
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x50]
lea eax, [esi + 0xa]
mov dword [ebp - 0x48], eax
add esi, 0xa
mov eax, dword [ebp - 0x10]
add esi, ecx
sub eax, ebx
mov ecx, esi
add eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x4c]
sub ebx, dword [ebp - 0x10]
add ebx, dword [ebp - 0x74]
add ebx, dword [ebp - 0x4c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x48]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
sub ecx, ebx
je 0x52a957
mov eax, dword [ebp - 0x7c]
mov ecx, edx
sub ecx, eax
je 0x52a957
push edx
push esi
push eax
push ebx
lea ecx, [edi + 0x290]
mov dword [edi + 0x2c0], 1
call fcn.0051a6a0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + 8]
cmp eax, esi
cmovle eax, esi
mov dword [ecx + 8], eax
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x78]
inc esi
mov ecx, dword [ebx + 0x74]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x3c], esi
cmp esi, eax
jl 0x52a870
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 0x24