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

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0x98
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x52f595
mov eax, dword [esp + 0xb8]
add eax, 0xc
mov dword [esp + 0xc8], eax
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xd0]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x98], ecx
mov edx, ecx
mov ecx, 1
mov eax, edi
cmp ebp, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jle 0x52f63b
lea eax, [esi + 8]
mov edx, dword [eax + 4]
cmp edx, edi
jge 0x52f5e6
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, ecx
mov dword [esp + 0x98], edx
jmp 0x52f628
jne 0x52f603
mov ebp, dword [eax]
cmp ebp, dword [esp + 0x98]
jge 0x52f603
mov edi, dword [eax + 4]
mov edx, ebp
mov ebx, ecx
mov dword [esp + 0x98], edx
jmp 0x52f628
mov ebp, dword [esp + 0x6c]
cmp ebp, edx
jl 0x52f617
jne 0x52f628
mov edx, dword [esp + 0x68]
mov ebp, dword [eax]
cmp edx, ebp
jge 0x52f628
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 + 0xd0]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x52f5cf
mov dword [esp + 0x34], ebx
lea edi, [ebx - 1]
lea edx, [ebx + 1]
test ebx, ebx
mov dword [esp + 0x18], edi
jne 0x52f650
lea edi, [ebp - 1]
mov dword [esp + 0x18], edi
lea eax, [ebp - 1]
cmp ebx, eax
mov dword [esp + 0x2c], eax
jne 0x52f65d
xor edx, edx
xor eax, eax
mov ecx, dword [esi + ebx*8 + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esi + edi*8 + 4]
mov ebp, dword [esi + edx*8]
mov dword [esp + 0x1c], eax
lea eax, [esi + ebx*8 + 4]
mov edx, dword [esi + edx*8 + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + ebx*8]
sub edi, ecx
sub ebp, eax
imul edi, ebp
mov ebp, dword [esp + 0x18]
sub edx, ecx
mov dword [esp + 0x20], ebx
mov ebp, dword [esi + ebp*8]
sub ebp, eax
imul edx, ebp
sub edx, edi
test edx, edx
jle 0x52f9a5
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x52f6ce
mov edi, dword [esp + 0xd0]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edi*8 - 4]
jne 0x52f6f1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
jmp 0x52f6f5
mov edx, dword [esi + ebp*8 + 4]
mov eax, dword [esi + ebp*8 - 4]
cmp edx, eax
jne 0x52f6ea
mov edi, dword [esp + 0xd0]
lea edx, [ebp - 1]
mov dword [esp + 0x1c], edx
jmp 0x52f6f5
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0x1c]
cmp ebx, edx
mov eax, ebx
je 0x52f713
mov ebp, dword [esp + 0x14]
inc eax
cmp eax, edi
jne 0x52f706
xor eax, eax
inc ebp
cmp eax, edx
jne 0x52f6ff
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
test ebx, ebx
jne 0x52f72e
mov eax, dword [esi + 4]
mov ecx, dword [esi + edi*8 - 4]
cmp eax, ecx
jne 0x52f73d
mov eax, edx
mov dword [esp + 0x20], eax
jmp 0x52f741
cmp ecx, dword [esi + ebx*8 - 4]
jne 0x52f73d
lea eax, [ebx - 1]
mov dword [esp + 0x20], eax
jmp 0x52f741
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x52f75a
mov ecx, dword [esp + 0x28]
dec eax
cmp eax, 0xffffffff
jne 0x52f751
mov eax, edx
inc ecx
cmp eax, ebp
jne 0x52f749
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
lea ebp, [ecx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x48], edi
lea eax, [edx + 1]
shl eax, 4
push eax
mov dword [esp + 0x80], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x4c], eax
call fcn.0054a1d0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x84]
push eax
call fcn.0054a1d0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, eax
mov eax, dword [esp + 0xc0]
mov edx, ebx
je 0x52f831
mov ebx, dword [esp + 0x30]
mov ebp, edi
sub edi, ebx
mov dword [esp + 0x18], ebp
lea ecx, [ebx + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xd0]
mov ebx, edx
inc edx
cmp edx, edi
jne 0x52f7dd
xor edx, edx
mov edi, dword [esi + ebx*8]
add ecx, 0x10
mov dword [ebp], edi
mov edi, dword [esi + ebx*8 + 4]
mov dword [ebp + 4], edi
mov edi, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [edi + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [edi + ecx - 0xc], ebp
mov edi, dword [eax + ebx*8]
mov dword [ecx - 0x18], edi
mov edi, dword [eax + ebx*8 + 4]
mov ebp, dword [esp + 0x18]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebp, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebp
jne 0x52f7cd
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x52f8b3
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov ebp, edi
mov dword [esp + 0x18], edi
sub ebp, ebx
lea ecx, [ebx + 8]
mov dword [esp + 0x24], ebp
mov ebx, edx
dec edx
cmp edx, 0xffffffff
jne 0x52f860
mov edx, dword [esp + 0x2c]
mov ebp, dword [esi + ebx*8]
add ecx, 0x10
mov dword [edi], ebp
mov ebp, dword [esi + ebx*8 + 4]
mov dword [edi + 4], ebp
mov edi, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [edi + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [edi + ecx - 0xc], ebp
mov edi, dword [eax + ebx*8]
mov dword [ecx - 0x18], edi
mov edi, dword [eax + ebx*8 + 4]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
mov ebx, dword [esp + 0x10]
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
add edi, 0x10
cmp edx, ebx
mov dword [esp + 0x18], edi
jne 0x52f854
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
shl eax, 4
add edx, eax
lea ebx, [edx - 0x10]
mov ebp, dword [edx - 0x10]
mov dword [edx], ebp
mov ebp, dword [ebx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ebx + 8]
mov dword [edx + 8], ebp
mov ebx, dword [ebx + 0xc]
mov dword [edx + 0xc], ebx
mov edx, dword [esp + 0x38]
add eax, edx
lea edx, [eax - 0x10]
mov ebx, dword [eax - 0x10]
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x14]
shl eax, 4
lea edx, [eax + edi - 0x10]
mov ebx, dword [eax + edi - 0x10]
mov dword [eax + edi], ebx
mov ebx, dword [edx + 4]
mov dword [eax + edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [eax + edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [eax + edi + 0xc], edx
mov edx, dword [esp + 0x30]
add eax, edx
lea edx, [eax - 0x10]
mov ebx, dword [eax - 0x10]
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
xor ebx, ebx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb0]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x94], eax
xor eax, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x18], edx
xor edx, edx
cmp byte [esp + 0xcc], dl
setne dl
test ecx, ecx
mov dword [esp + 0x1c], edx
jne 0x52fb90
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [esi + ecx*8 + 4]
mov dword [esp + 0x24], edx
jmp 0x52fddb
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x52f9ba
cmp ecx, dword [esi + 4]
jne 0x52f9c9
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x52f9cd
cmp ecx, dword [esi + ebx*8 + 0xc]
jne 0x52f9c9
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
jmp 0x52f9cd
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x52f9f0
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, edi
jne 0x52f9e7
xor eax, eax
inc edx
cmp eax, ecx
jne 0x52f9e0
mov dword [esp + 0x28], edx
cmp ecx, ebp
jne 0x52fa07
mov ecx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x52fa1a
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x52fa1e
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + ecx*8 + 0xc]
cmp edx, eax
jne 0x52fa1a
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x52fa1e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ebx, ecx
je 0x52fa37
dec ebx
cmp ebx, 0xffffffff
jne 0x52fa2e
mov ebx, ebp
inc eax
cmp ebx, ecx
jne 0x52fa26
mov dword [esp + 0x14], eax
lea ebx, [eax + 1]
shl ebx, 4
push ebx
call fcn.0054a1d0
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], edi
lea ebp, [eax + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push ebx
mov dword [esp + 0x4c], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x40], eax
call fcn.0054a1d0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc0]
je 0x52fb01
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
mov ebx, edi
mov dword [esp + 0x18], edi
sub ebx, ebp
lea ecx, [ebp + 8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0xd0]
mov ebx, edx
inc edx
cmp edx, ebp
jne 0x52faae
xor edx, edx
mov ebp, dword [esi + ebx*8]
add ecx, 0x10
mov dword [edi], ebp
mov ebp, dword [esi + ebx*8 + 4]
mov dword [edi + 4], ebp
mov edi, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [edi + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [edi + ecx - 0xc], ebp
mov edi, dword [eax + ebx*8]
mov dword [ecx - 0x18], edi
mov edi, dword [eax + ebx*8 + 4]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
mov ebx, dword [esp + 0x10]
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
add edi, 0x10
cmp edx, ebx
mov dword [esp + 0x18], edi
jne 0x52fa9e
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
je 0x52f8b3
mov ebx, dword [esp + 0x30]
mov ebp, edi
sub edi, ebx
mov dword [esp + 0x18], ebp
lea ecx, [ebx + 8]
mov dword [esp + 0x24], edi
mov ebx, edx
dec edx
cmp edx, 0xffffffff
jne 0x52fb30
mov edx, dword [esp + 0x2c]
mov edi, dword [esi + ebx*8]
add ecx, 0x10
mov dword [ebp], edi
mov edi, dword [esi + ebx*8 + 4]
mov dword [ebp + 4], edi
mov edi, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [edi + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [edi + ecx - 0xc], ebp
mov edi, dword [eax + ebx*8]
mov dword [ecx - 0x18], edi
mov edi, dword [eax + ebx*8 + 4]
mov ebp, dword [esp + 0x18]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebp, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebp
jne 0x52fb24
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0x44]
jmp 0x52f8ba
mov edx, dword [ecx]
mov ebp, dword [esp + 0x10]
shl edx, 0x14
add edx, 0x80000
mov esi, dword [esi + ebp*8 + 4]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
shl edx, 0x14
sub edx, 0x80000
dec ecx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], esi
mov dword [esp + 0x5c], ecx
mov edx, dword [edx]
cmp ecx, edx
jl 0x5301e6
cmp esi, ebp
jl 0x5301e6
cmp ebp, edx
jg 0x52fbec
mov dword [esp + 0x20], edx
jmp 0x52fdcf
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, 1
dec ebp
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x52fc1a
add edi, 0xc
cmp dword [edi - 8], ebp
jg 0x52fc0e
cmp ebp, dword [edi]
jl 0x52fc16
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x52fc05
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x14], ecx
jle 0x52fc47
mov eax, dword [esp + 0x40]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x52fc3b
cmp ebp, dword [eax]
jl 0x52fc43
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x52fc32
mov dword [esp + 0x14], 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 + 0x70], edx
shl eax, 0x14
sub edi, edx
cdq
idiv edi
mov edx, dword [esp + 0x30]
shl ebx, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x24], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x70]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x24]
shl edi, 0x14
mov dword [esp + 0x88], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x7c]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x84]
imul eax, dword [esp + 0x88]
mov dword [esp + 0x28], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x14]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
shl ecx, 4
mov dword [esp + 0x58], 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 + 0x64], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x1c]
add esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
mov esi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + eax - 4]
sub eax, esi
shl eax, 0x14
cdq
idiv dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
sub ebp, ecx
mov ecx, ebp
imul edx, ecx
shl edi, 0x14
shl ebx, 0x14
lea edx, [edx + edi + 0x80000]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x90]
imul edx, ecx
mov dword [esp + 0x70], eax
imul eax, ecx
mov ecx, dword [esp + 0x5c]
lea edx, [edx + ebx + 0x80000]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
shl esi, 0x14
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
cmp esi, ecx
mov dword [esp + 0x24], esi
jle 0x52fddb
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0xb8]
mov ecx, edx
imul ecx, dword [esp + 0x18]
add ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jg 0x5301e6
mov edx, dword [esp + 0x40]
shl ebx, 4
mov ecx, ebx
mov ebx, dword [esp + 0x38]
shl eax, 4
lea ebp, [ecx + edx]
lea ecx, [ecx + ebx - 0xc]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x30]
lea esi, [eax + edi]
mov dword [esp + 0x64], ebp
lea eax, [eax + ecx - 0xc]
add ebp, 0xfffffff0
mov dword [esp + 0x10], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x38]
sub eax, edx
lea ebx, [esi - 0x10]
mov dword [esp + 0xa4], eax
jmp 0x52fe56
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x52fead
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x88]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
add eax, esi
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x60], eax
sar eax, 0x14
imul eax, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
add ecx, edi
mov dword [esp + 0x58], ecx
sar ecx, 0x14
add edx, eax
lea esi, [edx + ecx*4]
jmp 0x52ff55
mov edx, dword [ebx + 0x10]
add ebx, 0x10
mov eax, edx
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0xc]
add ecx, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
sub edi, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 8]
sub eax, edx
mov ecx, dword [ecx]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa0]
mov esi, dword [edx + ebx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, esi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x58], eax
mov eax, ecx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, dword [edx + 4]
sub eax, esi
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
sub eax, ecx
imul ecx, dword [esp + 0x54]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x94]
add edx, ecx
lea esi, [edx + esi*4]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
cmp dword [eax + 4], ecx
je 0x52ff97
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
add edi, edx
add eax, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x50], eax
jmp 0x53002e
mov edx, dword [ebp + 0x10]
add ebp, 0x10
mov eax, edx
mov edi, dword [esp + 0x74]
mov ecx, dword [ebp + 0xc]
add edi, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x74], edi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
sub eax, edx
mov edi, dword [edi]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xa4]
mov edx, dword [edx + ebp]
mov dword [esp + 0x80], eax
mov eax, edx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x4c], eax
mov eax, edi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x90], eax
mov eax, dword [edx + 8]
sub eax, edi
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sar eax, 0x14
sar ecx, 0x14
mov dword [esp + 0x34], eax
sub eax, ecx
mov dword [esp + 0x3c], ecx
je 0x530090
mov edx, dword [esp + 0x1c]
lea edi, [eax + edx]
mov eax, dword [esp + 0x58]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x4c]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x50]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x48], eax
jmp 0x53009d
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xc8]
xor edi, edi
xor edx, edx
mov dword [esp + 0x68], esi
test eax, eax
jne 0x5300b9
mov eax, dword [esp + 0x34]
jmp 0x53013a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
cmp ecx, eax
jl 0x5301bf
mov ecx, dword [esp + 0x98]
cmp dword [esp + 0x2c], ecx
jl 0x5301bf
cmp ecx, eax
jg 0x5300e4
mov ecx, dword [esp + 0x3c]
jmp 0x53011f
mov edx, dword [esp + 0xc8]
sub ecx, eax
sar ecx, 0x14
mov edx, dword [edx]
mov dword [esp + 0x3c], edx
mov edx, ecx
imul ecx, dword [esp + 0x48]
imul edx, dword [esp + 0x8c]
mov edi, ecx
mov ecx, edx
mov eax, edi
sar eax, 0x14
imul eax, dword [esp + 0x54]
sar ecx, 0x14
add eax, esi
lea esi, [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x2c], eax
jg 0x53012f
mov eax, dword [esp + 0x34]
jmp 0x53013a
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 8]
dec eax
cmp ecx, eax
mov dword [esp + 0x3c], eax
jg 0x5301af
mov eax, dword [esp + 0x14]
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
mov cx, word [esi]
cmp cx, word [esp + 0xbc]
je 0x530172
mov word [eax], cx
mov cl, byte [esi + 2]
mov byte [eax + 2], cl
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x8c]
add edi, esi
add edx, eax
mov eax, edi
mov esi, dword [esp + 0x68]
sar eax, 0x14
imul eax, dword [esp + 0x54]
mov ecx, edx
add esi, eax
mov eax, dword [esp + 0x34]
sar ecx, 0x14
add eax, 4
lea esi, [esi + ecx*4]
mov ecx, dword [esp + 0x3c]
dec ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
jne 0x53015c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x5301cd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x52fe52
mov edi, dword [esp + 0x44]
push edi
call fcn.0054a2d0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x38]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x44]
push eax
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret