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

Disassembly:
mov eax, dword [esp + 0x20]
xor ecx, ecx
sub esp, 0x98
cmp eax, ecx
jne 0x52cf31
mov eax, dword [esp + 0xa8]
add eax, 0xc
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xcc]
push edi
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x98], edx
mov eax, edx
mov edx, ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x68], edx
mov edx, 1
cmp ebp, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], eax
jle 0x52cfdb
lea eax, [esi + 8]
mov edi, dword [eax + 4]
cmp edi, ebx
jge 0x52cf86
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, edx
mov dword [esp + 0x98], edi
jmp 0x52cfc8
jne 0x52cfa3
mov ebp, dword [eax]
cmp ebp, dword [esp + 0x98]
jge 0x52cfa3
mov ebx, dword [eax + 4]
mov edi, ebp
mov ecx, edx
mov dword [esp + 0x98], edi
jmp 0x52cfc8
mov ebp, dword [esp + 0x68]
cmp ebp, edi
jl 0x52cfb7
jne 0x52cfc8
mov edi, dword [esp + 0x64]
mov ebp, dword [eax]
cmp edi, ebp
jge 0x52cfc8
mov edi, dword [eax]
mov dword [esp + 0x10], edx
mov dword [esp + 0x64], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x68], edi
mov ebp, dword [esp + 0xd0]
inc edx
add eax, 8
cmp edx, ebp
jl 0x52cf6f
mov dword [esp + 0x4c], ecx
lea ebx, [ecx - 1]
lea edi, [ecx + 1]
test ecx, ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x14], ebx
jne 0x52cff4
lea ebx, [ebp - 1]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 1]
cmp ecx, eax
mov dword [esp + 0x20], eax
jne 0x52d001
xor edi, edi
xor eax, eax
mov edx, dword [esi + ecx*8 + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + ebx*8 + 4]
mov ebp, dword [esi + edi*8]
mov dword [esp + 0x18], eax
lea eax, [esi + ecx*8 + 4]
mov edi, dword [esi + edi*8 + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esi + ecx*8]
sub ebx, edx
sub ebp, eax
imul ebx, ebp
mov ebp, dword [esp + 0x14]
sub edi, edx
mov dword [esp + 0x2c], ecx
mov ebp, dword [esi + ebp*8]
sub ebp, eax
imul edi, ebp
sub edi, ebx
test edi, edi
jle 0x52d338
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x52d072
mov ebp, dword [esp + 0xd0]
mov eax, dword [esi + 4]
cmp eax, dword [esi + ebp*8 - 4]
jne 0x52d095
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jmp 0x52d099
mov eax, dword [esi + ebx*8 + 4]
mov edi, dword [esi + ebx*8 - 4]
cmp eax, edi
jne 0x52d08e
mov ebp, dword [esp + 0xd0]
lea edi, [ebx - 1]
mov dword [esp + 0x18], edi
jmp 0x52d099
mov ebp, dword [esp + 0xd0]
mov edi, dword [esp + 0x18]
cmp ecx, edi
mov eax, ecx
je 0x52d0b7
mov ebx, dword [esp + 0x28]
inc eax
cmp eax, ebp
jne 0x52d0aa
xor eax, eax
inc ebx
cmp eax, edi
jne 0x52d0a3
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
test ecx, ecx
jne 0x52d0d2
mov ecx, dword [esi + 4]
mov eax, dword [esi + ebp*8 - 4]
cmp ecx, eax
jne 0x52d0e2
mov eax, edi
mov dword [esp + 0x2c], eax
jmp 0x52d0e6
cmp edx, dword [esi + ecx*8 - 4]
jne 0x52d0e2
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
jmp 0x52d0e6
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
cmp eax, ebx
je 0x52d0ff
dec eax
cmp eax, 0xffffffff
jne 0x52d0f6
mov eax, edi
inc ebp
cmp eax, ebx
jne 0x52d0ee
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x28]
lea ebx, [edx + 1]
shl ebx, 4
push ebx
call fcn.0054a1d0
inc ebp
mov edi, eax
shl ebp, 4
push ebp
mov dword [esp + 0x5c], edi
call fcn.0054a1d0
push ebx
mov dword [esp + 0x50], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x40], eax
call fcn.0054a1d0
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc0]
je 0x52d1c4
mov ebx, dword [esp + 0x30]
mov ebp, edi
sub edi, ebx
mov dword [esp + 0x14], ebp
lea ecx, [ebx + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0xd0]
mov ebx, edx
inc edx
cmp edx, edi
jne 0x52d170
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 + 0x1c]
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 + 0x14]
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 + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebp
jne 0x52d160
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x52d246
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov ebp, edi
mov dword [esp + 0x14], edi
sub ebp, ebx
lea ecx, [ebx + 8]
mov dword [esp + 0x1c], ebp
mov ebx, edx
dec edx
cmp edx, 0xffffffff
jne 0x52d1f3
mov edx, dword [esp + 0x20]
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 + 0x1c]
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 + 0x14]
add edi, 0x10
cmp edx, ebx
mov dword [esp + 0x14], edi
jne 0x52d1e7
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
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 + 0x28]
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 + 0x4c], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x94], eax
xor eax, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x14], edx
xor edx, edx
cmp byte [esp + 0xcc], dl
setne dl
test ecx, ecx
mov dword [esp + 0x2c], edx
jne 0x52d51d
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [esi + ecx*8 + 4]
mov dword [esp + 0x1c], edx
jmp 0x52d762
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x52d34d
cmp edx, dword [esi + 4]
jne 0x52d35c
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x52d360
cmp edx, dword [esi + ecx*8 + 0xc]
jne 0x52d35c
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
jmp 0x52d360
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x52d398
mov edi, dword [esp + 0xd0]
mov ebp, dword [esp + 0x24]
inc eax
cmp eax, edi
jne 0x52d37a
xor eax, eax
inc ebp
cmp eax, edx
jne 0x52d373
mov dword [esp + 0x24], ebp
mov eax, dword [esi + edx*8 + 4]
cmp edx, ebx
jne 0x52d39e
cmp eax, dword [esi + 4]
jne 0x52d3ad
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x52d3b1
mov ebp, dword [esp + 0x24]
jmp 0x52d383
cmp eax, dword [esi + edx*8 + 0xc]
jne 0x52d3ad
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
jmp 0x52d3b1
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
cmp ecx, eax
je 0x52d3cc
dec ecx
cmp ecx, 0xffffffff
jne 0x52d3c3
mov ecx, dword [esp + 0x20]
inc ebx
cmp ecx, eax
jne 0x52d3b9
mov dword [esp + 0x28], ebx
inc ebx
shl ebx, 4
push ebx
call fcn.0054a1d0
inc ebp
mov edi, eax
shl ebp, 4
push ebp
mov dword [esp + 0x5c], edi
call fcn.0054a1d0
push ebx
mov dword [esp + 0x50], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x40], eax
call fcn.0054a1d0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc0]
je 0x52d48e
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov ebx, edi
mov dword [esp + 0x14], edi
sub ebx, ebp
lea ecx, [ebp + 8]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0xd0]
mov ebx, edx
inc edx
cmp edx, ebp
jne 0x52d43b
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 + 0x1c]
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 + 0x14]
add edi, 0x10
cmp edx, ebx
mov dword [esp + 0x14], edi
jne 0x52d42b
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
je 0x52d246
mov ebx, dword [esp + 0x30]
mov ebp, edi
sub edi, ebx
mov dword [esp + 0x14], ebp
lea ecx, [ebx + 8]
mov dword [esp + 0x1c], edi
mov ebx, edx
dec edx
cmp edx, 0xffffffff
jne 0x52d4bd
mov edx, dword [esp + 0x20]
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 + 0x1c]
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 + 0x14]
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 + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebp
jne 0x52d4b1
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0x54]
jmp 0x52d24d
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 + 0x74], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x50], esi
mov dword [esp + 0x70], ecx
mov edx, dword [edx]
cmp ecx, edx
jl 0x52db9c
cmp esi, ebp
jl 0x52db9c
cmp ebp, edx
jg 0x52d579
mov dword [esp + 0x20], edx
jmp 0x52d756
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ebp
mov eax, 1
dec ebp
cmp ecx, eax
mov dword [esp + 0x3c], eax
jle 0x52d5a7
add edi, 0xc
cmp dword [edi - 8], ebp
jg 0x52d59b
cmp ebp, dword [edi]
jl 0x52d5a3
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x52d592
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x34], ecx
jle 0x52d5d4
mov eax, dword [esp + 0x44]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x52d5c8
cmp ebp, dword [eax]
jl 0x52d5d0
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x52d5bf
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
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 + 0x58], 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 + 0x8c], eax
mov eax, dword [esp + 0x2c]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x1c], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x78], 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 + 0x58]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x1c]
shl edi, 0x14
mov dword [esp + 0x7c], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x8c]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x78]
imul eax, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x34]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
shl ecx, 4
mov dword [esp + 0x18], 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 + 0x60], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x2c]
add esi, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x88], 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 + 0x84], 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 + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x88]
sub ebp, ecx
mov ecx, ebp
imul edx, ecx
shl edi, 0x14
shl ebx, 0x14
lea edx, [edx + edi + 0x80000]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x84]
imul edx, ecx
mov dword [esp + 0x58], eax
imul eax, ecx
mov ecx, dword [esp + 0x70]
lea edx, [edx + ebx + 0x80000]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
shl esi, 0x14
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
cmp esi, ecx
mov dword [esp + 0x1c], esi
jle 0x52d762
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0xb8]
mov ecx, edx
imul ecx, dword [esp + 0x14]
add ecx, dword [esi + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jg 0x52db9c
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
shl ebx, 4
shl eax, 4
lea ebp, [ebx + edx]
lea ebx, [ebx + esi - 0xc]
mov esi, dword [esp + 0x30]
lea ecx, [eax + edi]
mov dword [esp + 0x60], ebp
add ebp, 0xfffffff0
lea eax, [eax + esi - 0xc]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
sub eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x38]
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], ebx
lea esi, [ecx - 0x10]
jmp 0x52d7fb
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x90]
cmp dword [ecx + 4], edx
je 0x52d83f
mov ecx, dword [esp + 0x8c]
add dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
add edi, ecx
mov ecx, dword [esp + 0x7c]
add eax, ecx
mov ecx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
sar eax, 0x14
imul eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x94]
sar ecx, 0x14
add edi, eax
lea ecx, [ecx + ecx*2]
add ecx, edi
jmp 0x52d8f1
mov edx, dword [esi + 0x10]
add esi, 0x10
mov eax, edx
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0xc]
add edi, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
sub ecx, eax
lea eax, [esi + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 8]
sub eax, edx
mov edi, dword [edi]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + esi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, ebx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x18], eax
mov eax, edi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [edx + 4]
sub eax, ebx
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
sub eax, edi
imul edi, dword [esp + 0x4c]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x94]
lea ecx, [ebx + ebx*2]
mov ebx, dword [esp + 0x90]
add edx, edi
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
cmp dword [eax + 4], edx
je 0x52d92f
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x84]
add edi, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], edi
add edx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x58]
add eax, edx
mov dword [esp + 0x6c], eax
jmp 0x52d9c1
mov edx, dword [ebp + 0x10]
add ebp, 0x10
mov eax, edx
add ebx, 0x10
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x90], ebx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
sub edi, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa4]
mov edx, dword [edx + ebp]
mov dword [esp + 0x88], eax
mov eax, edx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x5c], eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
add edi, eax
mov eax, dword [ebx + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 8]
sub eax, dword [esp + 0x58]
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
sar edi, 0x14
sar ebx, 0x14
mov dword [esp + 0x48], edi
sub edi, ebx
mov dword [esp + 0x40], ebx
je 0x52da22
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
sar eax, 0x14
shl eax, 0x14
add edi, edx
mov edx, eax
mov eax, dword [esp + 0x5c]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x6c]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x50], eax
jmp 0x52da2f
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x80], eax
mov edi, dword [esp + 0xc8]
xor edx, edx
xor eax, eax
mov dword [esp + 0x64], ecx
test edi, edi
jne 0x52da4f
mov edi, dword [esp + 0x48]
mov dword [esp + 0x48], edi
jmp 0x52dae3
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x74]
cmp ebx, edi
jl 0x52db75
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jl 0x52db75
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jg 0x52da84
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], edi
jmp 0x52dabe
mov eax, dword [esp + 0xc8]
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov edx, edi
sub edx, ebx
sar edx, 0x14
mov eax, edx
imul edx, dword [esp + 0x50]
imul eax, dword [esp + 0x80]
mov ebx, edx
mov edi, eax
sar ebx, 0x14
imul ebx, dword [esp + 0x4c]
sar edi, 0x14
lea ecx, [ecx + edi*2]
add edi, ecx
lea ecx, [edi + ebx]
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jg 0x52dad0
mov edi, dword [esp + 0x48]
jmp 0x52dadb
mov edi, dword [esp + 0xc8]
mov edi, dword [edi + 8]
dec edi
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x48], edi
cmp ebx, edi
jg 0x52db65
mov edi, dword [esp + 0x34]
lea edi, [edi + ebx*2]
lea edi, [ebx + edi + 1]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x48]
sub edi, ebx
inc edi
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0xbc]
xor ebx, dword [ecx]
test ebx, 0xffffff
je 0x52db26
mov bl, byte [ecx + 2]
mov byte [edi + 1], bl
mov bl, byte [ecx + 1]
mov byte [edi], bl
mov cl, byte [ecx]
mov byte [edi - 1], cl
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x80]
add edx, edi
add eax, ebx
mov edi, edx
mov ebx, dword [esp + 0x64]
sar edi, 0x14
imul edi, dword [esp + 0x4c]
mov ecx, eax
add ebx, edi
mov edi, dword [esp + 0x40]
sar ecx, 0x14
add edi, 3
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x40], edi
add ecx, ebx
mov ebx, dword [esp + 0x48]
dec ebx
mov dword [esp + 0x48], ebx
jne 0x52db05
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x34], eax
jmp 0x52db83
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc edx
cmp edx, eax
mov dword [esp + 0x20], edx
jle 0x52d7e8
mov edi, dword [esp + 0x54]
push edi
call fcn.0054a2d0
mov ecx, dword [esp + 0x48]
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