Function at 0x520e00
Capabilities:
Encode data using xor
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 0x520e25
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 + 0x3c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0xa0], ecx
mov edx, ecx
mov ecx, 1
mov eax, edi
cmp ebp, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jle 0x520ecb
lea eax, [esi + 8]
mov edx, dword [eax + 4]
cmp edx, edi
jge 0x520e76
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x520eb8
jne 0x520e93
mov ebp, dword [eax]
cmp ebp, dword [esp + 0xa0]
jge 0x520e93
mov edi, dword [eax + 4]
mov edx, ebp
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x520eb8
mov ebp, dword [esp + 0x68]
cmp ebp, edx
jl 0x520ea7
jne 0x520eb8
mov edx, dword [esp + 0x64]
mov ebp, dword [eax]
cmp edx, ebp
jge 0x520eb8
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov ebp, dword [esp + 0xd8]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x520e5f
mov dword [esp + 0x3c], ebx
lea edi, [ebx - 1]
lea edx, [ebx + 1]
test ebx, ebx
mov dword [esp + 0x18], edi
jne 0x520ee0
lea edi, [ebp - 1]
mov dword [esp + 0x18], edi
lea eax, [ebp - 1]
cmp ebx, eax
mov dword [esp + 0x2c], eax
jne 0x520eed
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 + 0x1c]
mov edi, dword [esi + edi*8 + 4]
mov ebp, dword [esi + edx*8]
mov dword [esp + 0x10], eax
lea eax, [esi + ebx*8 + 4]
mov edx, dword [esi + edx*8 + 4]
mov dword [esp + 0x4c], 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 0x521235
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jne 0x520f5e
mov edi, dword [esp + 0xd8]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edi*8 - 4]
jne 0x520f81
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
jmp 0x520f85
mov edx, dword [esi + ebp*8 + 4]
mov eax, dword [esi + ebp*8 - 4]
cmp edx, eax
jne 0x520f7a
mov edi, dword [esp + 0xd8]
lea edx, [ebp - 1]
mov dword [esp + 0x10], edx
jmp 0x520f85
mov edi, dword [esp + 0xd8]
mov edx, dword [esp + 0x10]
cmp ebx, edx
mov eax, ebx
je 0x520fbe
mov ebp, dword [esp + 0x14]
inc eax
cmp eax, edi
jne 0x520f96
xor eax, eax
inc ebp
cmp eax, edx
jne 0x520f8f
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jne 0x520fc4
mov eax, dword [esi + 4]
mov ecx, dword [esi + edi*8 - 4]
cmp eax, ecx
jne 0x520fd3
mov eax, edx
mov dword [esp + 0x20], eax
jmp 0x520fd7
mov edx, dword [esp + 0x2c]
jmp 0x520fa7
cmp ecx, dword [esi + ebx*8 - 4]
jne 0x520fd3
lea eax, [ebx - 1]
mov dword [esp + 0x20], eax
jmp 0x520fd7
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x520ff0
mov ecx, dword [esp + 0x28]
dec eax
cmp eax, 0xffffffff
jne 0x520fe7
mov eax, edx
inc ecx
cmp eax, ebp
jne 0x520fdf
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 + 0x44], edi
lea eax, [edx + 1]
shl eax, 4
push eax
mov dword [esp + 0x4c], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x40], eax
call fcn.0054a1d0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
push eax
call fcn.0054a1d0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp ebx, eax
mov eax, dword [esp + 0xc8]
mov edx, ebx
je 0x5210c1
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 + 0xd8]
mov ebx, edx
inc edx
cmp edx, edi
jne 0x52106d
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 + 0x10]
cmp edx, edi
mov dword [esp + 0x18], ebp
jne 0x52105d
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
je 0x521143
mov edi, dword [esp + 0x34]
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 0x5210f0
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 + 0x1c]
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 0x5210e4
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
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 + 0xb8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x98], eax
xor eax, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x18], edx
xor edx, edx
cmp byte [esp + 0xd4], bl
setne bl
test ecx, ecx
mov dword [esp + 0x50], ebx
jne 0x521420
mov ecx, dword [esp + 0x4c]
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov ecx, dword [esi + ecx*8 + 4]
mov dword [esp + 0x24], ecx
jmp 0x52166d
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x52124a
cmp ecx, dword [esi + 4]
jne 0x521259
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x52125d
cmp ecx, dword [esi + ebx*8 + 0xc]
jne 0x521259
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
jmp 0x52125d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x521280
mov edi, dword [esp + 0xd8]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, edi
jne 0x521277
xor eax, eax
inc edx
cmp eax, ecx
jne 0x521270
mov dword [esp + 0x28], edx
cmp ecx, ebp
jne 0x521297
mov ecx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x5212aa
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x5212ae
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + ecx*8 + 0xc]
cmp edx, eax
jne 0x5212aa
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x5212ae
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ebx, ecx
je 0x5212c7
dec ebx
cmp ebx, 0xffffffff
jne 0x5212be
mov ebx, ebp
inc eax
cmp ebx, ecx
jne 0x5212b6
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 + 0x44], edi
lea ebp, [eax + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push ebx
mov dword [esp + 0x40], 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 + 0x2c]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc8]
je 0x521391
mov edi, dword [esp + 0x34]
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 + 0xd8]
mov ebx, edx
inc edx
cmp edx, ebp
jne 0x52133e
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 [ecx + edi - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ecx + edi - 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 + 0x1c]
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 0x52132e
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x521143
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 0x5213c0
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 + 0x10]
cmp edx, edi
mov dword [esp + 0x18], ebp
jne 0x5213b4
mov ecx, dword [esp + 0xd0]
mov edi, dword [esp + 0x40]
jmp 0x52114a
mov ebx, dword [ecx]
mov ebp, dword [esp + 0x1c]
shl ebx, 0x14
add ebx, 0x80000
mov esi, dword [esi + ebp*8 + 4]
mov dword [esp + 0xa0], ebx
mov ebx, dword [ecx + 8]
shl ebx, 0x14
sub ebx, 0x80000
mov ebp, dword [ecx + 4]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
mov esi, dword [ecx + 0xc]
mov ebx, dword [ebx]
dec esi
cmp esi, ebx
mov dword [esp + 0x48], esi
jl 0x521aa2
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
jl 0x521aa2
cmp ebp, ebx
jg 0x521483
mov dword [esp + 0x20], ebx
jmp 0x521661
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, 1
dec ebp
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x5214b1
add edi, 0xc
cmp dword [edi - 8], ebp
jg 0x5214a5
cmp ebp, dword [edi]
jl 0x5214ad
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x52149c
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x14], ecx
jle 0x5214de
mov eax, dword [esp + 0x34]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x5214d2
cmp ebp, dword [eax]
jl 0x5214da
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x5214c9
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
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 + 0x44], 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 + 0x78], eax
mov eax, dword [esp + 0x50]
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 + 0x44]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x24]
shl edi, 0x14
mov dword [esp + 0x70], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x78]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x84]
imul eax, dword [esp + 0x70]
mov dword [esp + 0x28], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x14]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
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 + 0x44], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x50]
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 + 0x7c], 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 + 0x44]
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 + 0x40]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
imul edx, ecx
mov dword [esp + 0x8c], eax
imul eax, ecx
mov ecx, dword [esp + 0x3c]
lea edx, [edx + ebx + 0x80000]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x10]
shl esi, 0x14
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
cmp ecx, esi
mov dword [esp + 0x24], ecx
jle 0x52166d
mov dword [esp + 0x24], esi
mov ecx, ebx
mov esi, dword [esp + 0xc0]
imul ecx, dword [esp + 0x18]
add ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jg 0x521aa2
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
shl eax, 4
shl edx, 4
lea ebp, [eax + esi]
lea eax, [eax + ecx - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea ebx, [edx + edi]
mov dword [esp + 0x9c], ebp
lea edx, [edx + eax - 0xc]
sub eax, edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0x90], ebx
mov eax, ecx
add ebp, 0xfffffff0
add ebx, 0xfffffff0
sub eax, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x20]
cmp ecx, eax
je 0x52173d
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
add ecx, esi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x5c], ecx
add eax, edx
sar ecx, 0x14
imul ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
add eax, edi
mov dword [esp + 0x58], eax
sar eax, 0x14
add edx, ecx
lea edi, [edx + eax*4]
jmp 0x5217e5
mov ecx, dword [ebx + 0x10]
add ebx, 0x10
mov eax, ecx
mov esi, dword [esp + 0x14]
shl eax, 0x14
add eax, 0x80000
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 8]
add esi, 0x10
sub eax, ecx
mov dword [esp + 0x14], esi
mov esi, dword [ebx + 4]
shl eax, 0x14
cdq
sub edi, esi
mov ecx, dword [esp + 0xa8]
idiv edi
mov esi, dword [ecx + ebx]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [esp + 0x78], 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 + 0x5c], eax
mov eax, dword [esp + 0x50]
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 + 0x14]
mov eax, dword [eax + 8]
sub eax, ecx
imul ecx, dword [esp + 0x6c]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x98]
add edx, ecx
lea edi, [edx + esi*4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x20]
cmp ecx, eax
je 0x52182c
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x60]
add esi, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x74]
add esi, edx
add ecx, eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x60], ecx
jmp 0x5218d3
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
add ebp, 0x10
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x44], ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xac]
mov edx, dword [edx + ebp]
mov esi, edx
shl esi, 0x14
add esi, 0x80000
mov dword [esp + 0x74], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
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 + 0x7c], eax
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x48]
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
sar ecx, 0x14
sar eax, 0x14
mov edx, ecx
mov dword [esp + 0x54], ecx
sub edx, eax
mov dword [esp + 0x94], eax
je 0x521940
mov eax, dword [esp + 0x50]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x58]
sar edx, 0x14
mov eax, esi
shl edx, 0x14
and eax, 0xfff00000
sub eax, edx
cdq
idiv ecx
mov esi, eax
mov eax, dword [esp + 0x5c]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x60]
and eax, 0xfff00000
mov dword [esp + 0x48], esi
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x94]
jmp 0x52194a
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
xor edx, edx
mov dword [esp + 0x64], edi
cmp dword [esp + 0xd0], edx
mov dword [esp + 0x3c], 0
je 0x5219ec
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jl 0x521a7b
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jl 0x521a7b
cmp ecx, dword [esp + 0x28]
jg 0x52199a
mov eax, dword [esp + 0x94]
jmp 0x5219cc
mov edx, dword [esp + 0xd0]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
sub ecx, edx
sar ecx, 0x14
mov edx, ecx
imul ecx, dword [esp + 0x4c]
imul edx, esi
mov dword [esp + 0x3c], ecx
mov esi, edx
sar ecx, 0x14
imul ecx, dword [esp + 0x6c]
sar esi, 0x14
add ecx, edi
lea edi, [ecx + esi*4]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x88]
cmp ecx, esi
jg 0x5219e1
mov ecx, dword [esp + 0x54]
jmp 0x5219ec
mov ecx, dword [esp + 0xd0]
mov ecx, dword [ecx + 8]
dec ecx
cmp eax, ecx
jg 0x521a6b
mov esi, dword [esp + 0x1c]
sub ecx, eax
inc ecx
lea esi, [esi + eax*2]
mov dword [esp + 0x54], ecx
xor ecx, ecx
xor ebp, ebp
mov cl, byte [edi + 2]
mov bp, word [esi]
shl ecx, 0x10
mov eax, ecx
add esi, 2
xor eax, 0xf0000
add eax, ebp
xor ebp, ebp
mov bp, word [edi]
mov edi, dword [esp + 0x48]
add ebp, ecx
mov cx, word [eax*2 + 0x82ee04]
mov eax, dword [esp + 0x3c]
add edx, edi
add cx, word [ebp*2 + 0x82ee04]
mov edi, dword [esp + 0x64]
mov word [esi - 2], cx
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, edx
mov dword [esp + 0x3c], eax
sar eax, 0x14
imul eax, dword [esp + 0x6c]
add edi, eax
mov eax, dword [esp + 0x54]
sar ecx, 0x14
dec eax
lea edi, [edi + ecx*4]
mov dword [esp + 0x54], eax
jne 0x5219fe
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x1c], eax
jmp 0x521a89
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x5216e2
mov edi, dword [esp + 0x40]
push edi
call fcn.0054a2d0
mov ecx, dword [esp + 0x38]
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, 0xa0
ret