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

Disassembly:
mov eax, dword [esp + 0x20]
xor ecx, ecx
sub esp, 0x98
cmp eax, ecx
jne 0x52dbf1
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 0x52dc9b
lea eax, [esi + 8]
mov edi, dword [eax + 4]
cmp edi, ebx
jge 0x52dc46
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, edx
mov dword [esp + 0x98], edi
jmp 0x52dc88
jne 0x52dc63
mov ebp, dword [eax]
cmp ebp, dword [esp + 0x98]
jge 0x52dc63
mov ebx, dword [eax + 4]
mov edi, ebp
mov ecx, edx
mov dword [esp + 0x98], edi
jmp 0x52dc88
mov ebp, dword [esp + 0x68]
cmp ebp, edi
jl 0x52dc77
jne 0x52dc88
mov edi, dword [esp + 0x64]
mov ebp, dword [eax]
cmp edi, ebp
jge 0x52dc88
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 0x52dc2f
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 0x52dcb4
lea ebx, [ebp - 1]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 1]
cmp ecx, eax
mov dword [esp + 0x20], eax
jne 0x52dcc1
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 0x52dff8
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x52dd32
mov ebp, dword [esp + 0xd0]
mov eax, dword [esi + 4]
cmp eax, dword [esi + ebp*8 - 4]
jne 0x52dd55
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jmp 0x52dd59
mov eax, dword [esi + ebx*8 + 4]
mov edi, dword [esi + ebx*8 - 4]
cmp eax, edi
jne 0x52dd4e
mov ebp, dword [esp + 0xd0]
lea edi, [ebx - 1]
mov dword [esp + 0x18], edi
jmp 0x52dd59
mov ebp, dword [esp + 0xd0]
mov edi, dword [esp + 0x18]
cmp ecx, edi
mov eax, ecx
je 0x52dd77
mov ebx, dword [esp + 0x28]
inc eax
cmp eax, ebp
jne 0x52dd6a
xor eax, eax
inc ebx
cmp eax, edi
jne 0x52dd63
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
test ecx, ecx
jne 0x52dd92
mov ecx, dword [esi + 4]
mov eax, dword [esi + ebp*8 - 4]
cmp ecx, eax
jne 0x52dda2
mov eax, edi
mov dword [esp + 0x2c], eax
jmp 0x52dda6
cmp edx, dword [esi + ecx*8 - 4]
jne 0x52dda2
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
jmp 0x52dda6
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
cmp eax, ebx
je 0x52ddbf
dec eax
cmp eax, 0xffffffff
jne 0x52ddb6
mov eax, edi
inc ebp
cmp eax, ebx
jne 0x52ddae
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 0x52de84
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 0x52de30
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 0x52de20
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x52df06
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 0x52deb3
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 0x52dea7
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 0x52e1dd
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 0x52e422
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x52e00d
cmp edx, dword [esi + 4]
jne 0x52e01c
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x52e020
cmp edx, dword [esi + ecx*8 + 0xc]
jne 0x52e01c
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
jmp 0x52e020
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x52e058
mov edi, dword [esp + 0xd0]
mov ebp, dword [esp + 0x24]
inc eax
cmp eax, edi
jne 0x52e03a
xor eax, eax
inc ebp
cmp eax, edx
jne 0x52e033
mov dword [esp + 0x24], ebp
mov eax, dword [esi + edx*8 + 4]
cmp edx, ebx
jne 0x52e05e
cmp eax, dword [esi + 4]
jne 0x52e06d
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x52e071
mov ebp, dword [esp + 0x24]
jmp 0x52e043
cmp eax, dword [esi + edx*8 + 0xc]
jne 0x52e06d
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
jmp 0x52e071
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
cmp ecx, eax
je 0x52e08c
dec ecx
cmp ecx, 0xffffffff
jne 0x52e083
mov ecx, dword [esp + 0x20]
inc ebx
cmp ecx, eax
jne 0x52e079
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 0x52e14e
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 0x52e0fb
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 0x52e0eb
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
je 0x52df06
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 0x52e17d
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 0x52e171
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0x54]
jmp 0x52df0d
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 0x52e85c
cmp esi, ebp
jl 0x52e85c
cmp ebp, edx
jg 0x52e239
mov dword [esp + 0x20], edx
jmp 0x52e416
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ebp
mov eax, 1
dec ebp
cmp ecx, eax
mov dword [esp + 0x3c], eax
jle 0x52e267
add edi, 0xc
cmp dword [edi - 8], ebp
jg 0x52e25b
cmp ebp, dword [edi]
jl 0x52e263
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x52e252
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x34], ecx
jle 0x52e294
mov eax, dword [esp + 0x44]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x52e288
cmp ebp, dword [eax]
jl 0x52e290
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x52e27f
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 0x52e422
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 0x52e85c
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 0x52e4bb
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 0x52e4ff
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 0x52e5b1
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 0x52e5ef
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 0x52e681
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 0x52e6e2
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 0x52e6ef
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 0x52e70f
mov edi, dword [esp + 0x48]
mov dword [esp + 0x48], edi
jmp 0x52e7a3
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x74]
cmp ebx, edi
jl 0x52e835
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jl 0x52e835
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jg 0x52e744
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], edi
jmp 0x52e77e
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 0x52e790
mov edi, dword [esp + 0x48]
jmp 0x52e79b
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 0x52e825
mov edi, dword [esp + 0x34]
lea edi, [edi + ebx*2]
lea edi, [ebx + edi + 2]
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 0x52e7e6
mov bl, byte [ecx]
mov byte [edi - 2], bl
mov bl, byte [ecx + 1]
mov byte [edi - 1], bl
mov cl, byte [ecx + 2]
mov byte [edi], 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 0x52e7c5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x34], eax
jmp 0x52e843
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 0x52e4a8
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