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

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x528215
mov eax, dword [esp + 0xc0]
add eax, 0xc
mov dword [esp + 0xd0], eax
mov esi, dword [esp + 0xcc]
mov ebp, dword [esp + 0xd8]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0xa4], ecx
mov edx, ecx
mov ecx, 1
mov eax, edi
cmp ebp, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jle 0x5282bb
lea eax, [esi + 8]
mov edx, dword [eax + 4]
cmp edx, edi
jge 0x528266
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, ecx
mov dword [esp + 0xa4], edx
jmp 0x5282a8
jne 0x528283
mov ebp, dword [eax]
cmp ebp, dword [esp + 0xa4]
jge 0x528283
mov edi, dword [eax + 4]
mov edx, ebp
mov ebx, ecx
mov dword [esp + 0xa4], edx
jmp 0x5282a8
mov ebp, dword [esp + 0x6c]
cmp ebp, edx
jl 0x528297
jne 0x5282a8
mov edx, dword [esp + 0x68]
mov ebp, dword [eax]
cmp edx, ebp
jge 0x5282a8
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov ebp, dword [esp + 0xd8]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x52824f
mov dword [esp + 0x50], ebx
lea edi, [ebx - 1]
lea edx, [ebx + 1]
test ebx, ebx
mov dword [esp + 0x14], edi
jne 0x5282d0
lea edi, [ebp - 1]
mov dword [esp + 0x14], edi
lea eax, [ebp - 1]
cmp ebx, eax
mov dword [esp + 0x28], eax
jne 0x5282dd
xor edx, edx
xor eax, eax
mov ecx, dword [esi + ebx*8 + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esi + edi*8 + 4]
mov ebp, dword [esi + edx*8]
mov dword [esp + 0x18], eax
lea eax, [esi + ebx*8 + 4]
mov edx, dword [esi + edx*8 + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esi + ebx*8]
sub edi, ecx
sub ebp, eax
imul edi, ebp
mov ebp, dword [esp + 0x14]
sub edx, ecx
mov dword [esp + 0x1c], ebx
mov ebp, dword [esi + ebp*8]
sub ebp, eax
imul edx, ebp
sub edx, edi
test edx, edx
jle 0x528521
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x52834e
mov edx, dword [esp + 0xd8]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edx*8 - 4]
jne 0x528363
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
jmp 0x528367
mov eax, dword [esi + ebp*8 + 4]
mov edx, dword [esi + ebp*8 - 4]
cmp eax, edx
jne 0x528363
lea edx, [ebp - 1]
mov dword [esp + 0x18], edx
jmp 0x528367
mov edx, dword [esp + 0x18]
cmp ebx, edx
mov eax, ebx
je 0x528386
mov edi, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0xd8]
jne 0x52837d
xor eax, eax
inc edi
cmp eax, edx
jne 0x528371
mov dword [esp + 0x20], edi
test ebx, ebx
jne 0x5283a4
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + edx*8 - 4]
jne 0x5283b3
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
jmp 0x5283b7
cmp ecx, dword [esi + ebx*8 - 4]
jne 0x5283b3
lea eax, [ebx - 1]
mov dword [esp + 0x1c], eax
jmp 0x5283b7
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x5283d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
dec eax
cmp eax, 0xffffffff
jne 0x5283cb
mov eax, edx
inc ecx
cmp eax, ebp
jne 0x5283c3
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x20]
lea edi, [eax + 1]
shl edi, 4
push edi
call fcn.0054a1d0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea ebp, [ecx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push edi
mov dword [esp + 0x48], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp ebx, eax
mov eax, dword [esp + 0xc8]
mov edx, ebx
je 0x52849a
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov ebp, ebx
mov dword [esp + 0x14], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0xd8]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x52844b
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x52843b
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x5286fd
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ebp, ebx
mov dword [esp + 0x14], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x2c], ebp
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x5284cd
mov edx, dword [esp + 0x28]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x5284c1
jmp 0x5286fd
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jne 0x528536
cmp ecx, dword [esi + 4]
jne 0x528545
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x528549
cmp ecx, dword [esi + ebx*8 + 0xc]
jne 0x528545
lea eax, [ebx + 1]
mov dword [esp + 0x1c], eax
jmp 0x528549
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x52856c
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xd8]
inc eax
cmp eax, edi
jne 0x528563
xor eax, eax
inc edx
cmp eax, ecx
jne 0x52855c
mov dword [esp + 0x24], edx
cmp ecx, ebp
jne 0x528583
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + 4]
cmp edx, eax
jne 0x528596
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x52859a
mov eax, dword [esi + ecx*8 + 4]
mov edx, dword [esi + ecx*8 + 0xc]
cmp eax, edx
jne 0x528596
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x52859a
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
mov eax, ebx
je 0x5285b5
mov edx, dword [esp + 0x20]
dec eax
cmp eax, 0xffffffff
jne 0x5285ac
mov eax, ebp
inc edx
cmp eax, ecx
jne 0x5285a4
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
lea edi, [ecx + 1]
shl edi, 4
push edi
call fcn.0054a1d0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea ebp, [edx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push edi
mov dword [esp + 0x48], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc8]
je 0x528681
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x2c], edi
mov ebp, dword [esp + 0xd8]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x52862e
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [ecx + ebx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ecx + ebx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x52861e
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov edx, ebx
cmp ebx, ecx
je 0x5286fd
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x2c], edi
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x5286ae
mov edx, dword [esp + 0x28]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x5286a2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov edi, dword [ecx - 0x10]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x20]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x40]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, edi
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov ebx, dword [ecx - 0x10]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
xor ebx, ebx
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x34]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xc0]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x50], ecx
mov dword [esp + 0xa0], edx
mov dl, byte [esp + 0xd4]
xor ecx, ecx
xor eax, eax
test dl, dl
setne al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x5287f3
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, dword [edx]
mov esi, dword [esi + eax*8 + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
jmp 0x528a40
mov edx, dword [eax]
mov ebp, dword [esp + 0x10]
shl edx, 0x14
add edx, 0x80000
mov esi, dword [esi + ebp*8 + 4]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
shl edx, 0x14
sub edx, 0x80000
dec eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], eax
mov edx, dword [edx]
cmp eax, edx
jl 0x528e95
cmp esi, ebp
jl 0x528e95
cmp ebp, edx
jg 0x528856
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
jmp 0x528a36
mov dword [esp + 0x1c], ebp
mov ecx, 1
dec ebp
cmp edi, ecx
mov dword [esp + 0x10], ecx
jle 0x528884
mov eax, dword [esp + 0x44]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x528878
cmp ebp, dword [eax]
jl 0x528880
inc ecx
add eax, 0x10
cmp ecx, edi
jl 0x52886f
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x38], ecx
jle 0x5288b1
mov eax, dword [esp + 0x3c]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x5288a5
cmp ebp, dword [eax]
jl 0x5288ad
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x52889c
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
shl ecx, 4
mov edx, dword [ecx + eax - 0xc]
mov edi, dword [ecx + eax - 4]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
mov dword [esp + 0x30], edx
shl eax, 0x14
sub edi, edx
cdq
idiv edi
mov edx, dword [esp + 0x34]
shl ebx, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x48], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x30]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x48]
shl edi, 0x14
mov dword [esp + 0x7c], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x88]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x74]
imul eax, dword [esp + 0x7c]
mov dword [esp + 0x28], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x38]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
shl ecx, 4
mov dword [esp + 0x60], edx
mov edx, dword [ecx + eax - 0xc]
mov esi, dword [ecx + eax - 4]
mov edi, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, edi
mov dword [esp + 0x30], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x18]
add esi, edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
mov esi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + eax - 4]
sub eax, esi
shl eax, 0x14
cdq
idiv dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
sub ebp, ecx
mov ecx, dword [esp + 0x84]
imul ecx, ebp
shl edi, 0x14
shl ebx, 0x14
lea edx, [ecx + edi + 0x80000]
mov ecx, dword [esp + 0x80]
imul ecx, ebp
mov dword [esp + 0x94], eax
imul eax, ebp
shl esi, 0x14
mov dword [esp + 0x24], edx
lea edx, [ecx + ebx + 0x80000]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov edi, edx
mov edx, dword [esp + 0x1c]
cmp esi, eax
jle 0x528a3c
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, edx
mov eax, dword [esp + 0xc0]
imul ebp, dword [esp + 0x50]
add ebp, dword [eax + 4]
cmp edx, esi
mov dword [esp + 0x38], ebp
jg 0x528e70
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
shl ebx, 4
shl ecx, 4
mov eax, ebx
lea ebx, [ecx + esi]
mov esi, dword [esp + 0x40]
lea edx, [eax + ebp]
mov dword [esp + 0x5c], ebx
lea ecx, [ecx + esi - 0xc]
add ebx, 0xfffffff0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], edx
lea esi, [edx - 0x10]
lea eax, [eax + ecx - 0xc]
mov dword [esp + 0x70], eax
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub eax, ebp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0xa4], eax
jmp 0x528ac1
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
cmp eax, ecx
je 0x528b15
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
add eax, edx
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
sar ecx, 0x14
imul ecx, dword [esp + 0x2c]
add eax, ebp
mov dword [esp + 0x60], eax
sar eax, 0x14
add edx, ecx
lea ebp, [edx + eax*4]
jmp 0x528bc1
mov edx, dword [esi + 0x10]
add esi, 0x10
mov eax, edx
mov ecx, dword [esp + 0x70]
mov edi, dword [esi + 0xc]
add ecx, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub edi, eax
lea eax, [esi + 0x10]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 8]
sub eax, edx
mov ecx, dword [ecx]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xac]
mov ebp, dword [edx + esi]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x88], eax
mov eax, ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, ecx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [edx + 4]
sub eax, ebp
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
sub eax, ecx
imul ecx, dword [esp + 0x2c]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x20]
add edx, ecx
lea ebp, [edx + ebp*4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + 4], ecx
je 0x528c02
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
add eax, edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x94]
add edi, edx
add ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x48], ecx
jmp 0x528ca5
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
add ebx, 0x10
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, edx
mov ecx, dword [ebx + 0xc]
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
sub ecx, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xa4]
mov edx, dword [edx + ebx]
mov edi, edx
shl edi, 0x14
add edi, 0x80000
mov dword [esp + 0x20], edi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x30]
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sar ecx, 0x14
sar eax, 0x14
mov edx, ecx
mov dword [esp + 0x30], ecx
sub edx, eax
mov dword [esp + 0x64], eax
je 0x528d0f
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x60]
sar edx, 0x14
mov eax, edi
shl edx, 0x14
and eax, 0xfff00000
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x58]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x48]
and eax, 0xfff00000
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x64]
jmp 0x528d1c
xor edx, edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x54], edx
xor edx, edx
cmp dword [esp + 0xd0], edx
mov dword [esp + 0x68], ebp
je 0x528dbf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x9c]
cmp ecx, eax
jl 0x528e4d
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x24], ecx
jl 0x528e4d
cmp ecx, eax
jg 0x528d61
mov eax, dword [esp + 0x64]
jmp 0x528d9f
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x28]
sub ecx, edi
mov eax, dword [esp + 0xd0]
sar ecx, 0x14
mov edx, ecx
imul ecx, dword [esp + 0x8c]
imul edx, dword [esp + 0x78]
mov dword [esp + 0x54], ecx
mov eax, dword [eax]
sar ecx, 0x14
imul ecx, dword [esp + 0x2c]
mov edi, edx
sar edi, 0x14
add ecx, ebp
lea ebp, [ecx + edi*4]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x9c]
cmp ecx, edi
jg 0x528db4
mov ecx, dword [esp + 0x30]
jmp 0x528dbf
mov ecx, dword [esp + 0xd0]
mov ecx, dword [ecx + 8]
dec ecx
cmp eax, ecx
jg 0x528e39
mov edi, dword [esp + 0x38]
sub ecx, eax
inc ecx
lea edi, [edi + eax*4 + 1]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0xc4]
mov ecx, dword [ebp]
cmp ecx, eax
je 0x528dfd
mov cl, byte [ebp + 1]
mov al, byte [ebp + 2]
mov byte [esp + 0x4f], cl
mov cl, byte [ebp]
mov byte [edi + 1], cl
mov cl, byte [esp + 0x4f]
mov byte [edi], cl
mov byte [edi - 1], al
mov byte [edi + 2], 0xff
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x8c]
add edx, eax
mov eax, dword [esp + 0x54]
add eax, ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x54], eax
mov ecx, edx
sar eax, 0x14
imul eax, dword [esp + 0x2c]
add ebp, eax
mov eax, dword [esp + 0x30]
sar ecx, 0x14
add edi, 4
dec eax
lea ebp, [ebp + ecx*4]
mov dword [esp + 0x30], eax
jne 0x528dd2
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x38], eax
jmp 0x528e5b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x528aba
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x40]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0054a2d0
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x528eb8
mov edx, dword [esp + 0x44]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x40]
push eax
call fcn.0054a2d0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret